Re: [PATCH v2] net: korina: fix kfree of rx/tx descriptor array

2020-10-12 Thread Jakub Kicinski
On Sun, 11 Oct 2020 18:53:31 -0400 Willem de Bruijn wrote: > On Sun, Oct 11, 2020 at 6:04 PM Valentin Vidic wrote: > > kmalloc returns KSEG0 addresses so convert back from KSEG1 > > in kfree. Also make sure array is freed when the driver is > > unloaded from the kernel. > > > > Fixes: ef11291bcd5f

Re: [PATCH v2] net: korina: fix kfree of rx/tx descriptor array

2020-10-11 Thread Willem de Bruijn
On Sun, Oct 11, 2020 at 6:04 PM Valentin Vidic wrote: > > kmalloc returns KSEG0 addresses so convert back from KSEG1 > in kfree. Also make sure array is freed when the driver is > unloaded from the kernel. > > Fixes: ef11291bcd5f ("Add support the Korina (IDT RC32434) Ethernet MAC") > Signed-off-b

[PATCH v2] net: korina: fix kfree of rx/tx descriptor array

2020-10-11 Thread Valentin Vidic
kmalloc returns KSEG0 addresses so convert back from KSEG1 in kfree. Also make sure array is freed when the driver is unloaded from the kernel. Fixes: ef11291bcd5f ("Add support the Korina (IDT RC32434) Ethernet MAC") Signed-off-by: Valentin Vidic --- v2: convert kfree address back to KSEG0 dr