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

Bruce Richardson bruce.richardson at intel.com
Mon Jul 4 17:39:27 CEST 2022


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: stable at dpdk.org
> Cc: bruce.richardson at intel.com
> 
> Reported-by: Xingguang He <xingguang.he at intel.com>
> Signed-off-by: Kevin Laatz <kevin.laatz at intel.com>
> 
> --
> v3: move ref_count increment to pci probe
> ---

Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the stable mailing list