[PATCH v2] bus: fix memleak during pci device cleanup

Li, WeiyuanX weiyuanx.li at intel.com
Thu Oct 20 07:31:59 CEST 2022


> -----Original Message-----
> From: Kevin Laatz <kevin.laatz at intel.com>
> Sent: Wednesday, October 19, 2022 8:38 PM
> To: dev at dpdk.org
> Cc: Laatz, Kevin <kevin.laatz at intel.com>; Morten Brørup
> <mb at smartsharesystems.com>; Richardson, Bruce
> <bruce.richardson at intel.com>
> Subject: [PATCH v2] bus: fix memleak during pci device cleanup
> 
> During PCI bus device cleanup some interrupt handle pointers and the
> bus_info pointer are not being free'd, leading to memory leaks.
> This patch fixes the memory leaks by ensuring they are free'd during device
> cleanup on exit.
> 
> Fixes: 1cab1a40ea9b ("bus: cleanup devices on shutdown")
> 
> Signed-off-by: Kevin Laatz <kevin.laatz at intel.com>
> 
> ---
Tested-by: Weiyuan Li <weiyuanx.li at intel.com>


More information about the dev mailing list