Skip to content

Commit 087a8a7

Browse files
thenzlgregkh
authored andcommitted
scsi: mpt3sas: Fix a fw_event memory leak
[ Upstream commit 3e90b38 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 349436b commit 087a8a7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/scsi/mpt3sas/mpt3sas_scsih.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10818,8 +10818,7 @@ _mpt3sas_fw_work(struct MPT3SAS_ADAPTER *ioc, struct fw_event_work *fw_event)
1081810818
break;
1081910819
case MPI2_EVENT_PCIE_TOPOLOGY_CHANGE_LIST:
1082010820
_scsih_pcie_topology_change_event(ioc, fw_event);
10821-
ioc->current_event = NULL;
10822-
return;
10821+
break;
1082310822
}
1082410823
out:
1082510824
fw_event_work_put(fw_event);

0 commit comments

Comments
 (0)