On Mon, Jul 04, 2022 at 04:27:49PM +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 instances on PCI probe")
> Cc: [email protected]
> Cc: [email protected]
> 
> Reported-by: Xingguang He <[email protected]>
> Signed-off-by: Kevin Laatz <[email protected]>
> 
> --
> v3: move ref_count increment to pci probe
> ---

Acked-by: Bruce Richardson <[email protected]>

Reply via email to