Skip to content

Commit 434810a

Browse files
committed
scsi: mpt3sas: Fix a fw_event memory leak
JIRA: https://issues.redhat.com/browse/RHEL-61878 In _mpt3sas_fw_work() the fw_event reference is removed, it should also be freed in all cases. Fixes: 4318c73 ("scsi: mpt3sas: Handle NVMe PCIe device related events generated from firmware.") Signed-off-by: Tomas Henzl <thenzl@redhat.com> Link: https://lore.kernel.org/r/20250723153018.50518-1-thenzl@redhat.com Acked-by: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> (cherry picked from commit 3e90b38) Signed-off-by: Tomas Henzl <thenzl@redhat.com>
1 parent 45ee25b commit 434810a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/scsi/mpt3sas/mpt3sas_scsih.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10790,8 +10790,7 @@ _mpt3sas_fw_work(struct MPT3SAS_ADAPTER *ioc, struct fw_event_work *fw_event)
1079010790
break;
1079110791
case MPI2_EVENT_PCIE_TOPOLOGY_CHANGE_LIST:
1079210792
_scsih_pcie_topology_change_event(ioc, fw_event);
10793-
ioc->current_event = NULL;
10794-
return;
10793+
break;
1079510794
}
1079610795
out:
1079710796
fw_event_work_put(fw_event);

0 commit comments

Comments
 (0)