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

2022-04-19 Thread Kevin Laatz
On 08/04/2022 15:52, Bruce Richardson wrote: On Fri, Apr 08, 2022 at 03:15:01PM +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 m

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

2022-04-08 Thread Bruce Richardson
On Fri, Apr 08, 2022 at 03:15:01PM +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 2/5] dma/idxd: fix memory leak due to free on incorrect pointer

2022-04-08 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