Skip to content

Commit 3e90b38

Browse files
thenzlmartinkpetersen
authored andcommitted
scsi: mpt3sas: Fix a fw_event memory leak
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Sathya Prakash Veerichetty <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 3ea3a25 commit 3e90b38

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
@@ -10809,8 +10809,7 @@ _mpt3sas_fw_work(struct MPT3SAS_ADAPTER *ioc, struct fw_event_work *fw_event)
1080910809
break;
1081010810
case MPI2_EVENT_PCIE_TOPOLOGY_CHANGE_LIST:
1081110811
_scsih_pcie_topology_change_event(ioc, fw_event);
10812-
ioc->current_event = NULL;
10813-
return;
10812+
break;
1081410813
}
1081510814
out:
1081610815
fw_event_work_put(fw_event);

0 commit comments

Comments
 (0)