mpt3sas: fix a memory leak
Subsystems (2)
PATCH 1/1 mpt3sas: fix a memory leak
Add a forgotten kfree
Fixes dbec4c9040ed ("scsi: mpt3sas: lockless command submission")
Signed-off-by Tomas Henzl <[email protected]>
--- drivers/scsi/mpt3sas/mpt3sas_base.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/scsi/mpt3sas/mpt3sas_base.c +3 -0
@@ -5850,6 +5850,9 @@ _base_release_memory_pools(struct MPT3SAS_ADAPTER *ioc) }dma_pool_destroy (ioc->pcie_sgl_dma_pool); } +kfree (ioc->pcie_sg_lookup); + ioc->pcie_sg_lookup =NULL ; +if (ioc->config_page) { dexitprintk(ioc, ioc_info(ioc, "config_page(0x%p): free\n",
Signature · 1 line
2.38.1
Martin K. Petersen
AppliedTomas,
Quoted 1 line
Add a forgotten kfree
Applied to 6.3/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 3 lines · Tomas Henzl
Add a forgotten kfree
Applied to 6.3/scsi-queue, thanks!
[1/1] mpt3sas: fix a memory leak
https://git.kernel.org/mkp/scsi/c/54dd96015e8d
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering