scsi: mpt3sas: Fix a memory leak
Add a forgotten kfree().
Fixes: dbec4c9040 ("scsi: mpt3sas: lockless command submission")
Link: https://lore.kernel.org/r/20230207152159.18627-1-thenzl@redhat.com
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
pull/938/head
parent
d48a62381a
commit
54dd96015e
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue