Re: [PATCH v2 1/3] dma/idxd: fix memory leak in pci close

2022-07-04 Thread Bruce Richardson
On Mon, Jul 04, 2022 at 02:34:31PM +0100, Kevin Laatz wrote: > On 04/07/2022 14:19, Bruce Richardson wrote: > > On Sun, Jul 03, 2022 at 01:22:41PM +0100, Kevin Laatz wrote: > > > ASAN reports a memory leak for the 'pci' pointer in the 'idxd_dmadev' > > > struct. > > > > > > This is fixed by free'i

Re: [PATCH v2 1/3] dma/idxd: fix memory leak in pci close

2022-07-04 Thread Kevin Laatz
On 04/07/2022 14:19, Bruce Richardson wrote: On Sun, Jul 03, 2022 at 01:22:41PM +0100, Kevin Laatz wrote: ASAN reports a memory leak for the 'pci' pointer in the 'idxd_dmadev' struct. This is fixed by free'ing the struct when the last queue on the PCI device is being closed. Fixes: 9449330a845

Re: [PATCH v2 1/3] dma/idxd: fix memory leak in pci close

2022-07-04 Thread Bruce Richardson
On Sun, Jul 03, 2022 at 01:22:41PM +0100, Kevin Laatz wrote: > ASAN reports a memory leak for the 'pci' pointer in the 'idxd_dmadev' > struct. > > This is fixed by free'ing the struct when the last queue on the PCI > device is being closed. > > Fixes: 9449330a8458 ("dma/idxd: create dmadev instan