Re: [PATCH v2 2/3] dma/idxd: fix memory leak due to free on incorrect pointer

2022-07-04 Thread Bruce Richardson
On Mon, Jul 04, 2022 at 02:23:38PM +0100, Bruce Richardson wrote: > On Sun, Jul 03, 2022 at 01:22:42PM +0100, Kevin Laatz wrote: > > During PCI device close, any allocated memory needs to be free'd. > > Currently, one of the free's is being called on an incorrect idxd_dmadev > > struct member, name

Re: [PATCH v2 2/3] dma/idxd: fix memory leak due to free on incorrect pointer

2022-07-04 Thread Bruce Richardson
On Sun, Jul 03, 2022 at 01:22:42PM +0100, Kevin Laatz wrote: > During PCI device close, any allocated memory needs to be free'd. > Currently, one of the free's is being called on an incorrect idxd_dmadev > struct member, namely 'batch_idx_ring', causing a memleak from the > pointer that should have

[PATCH v2 2/3] dma/idxd: fix memory leak due to free on incorrect pointer

2022-07-03 Thread Kevin Laatz
During PCI device close, any allocated memory needs to be free'd. Currently, one of the free's is being called on an incorrect idxd_dmadev struct member, namely 'batch_idx_ring', causing a memleak from the pointer that should have been free'd. This patch fixes this memleak by calling free on the co