Skip to content

Commit 6093605

Browse files
author
CKI KWF Bot
committed
Merge: scsi: megaraid_sas: Fix for a potential deadlock
MR: https://gitlab.com/redhat/rhel/src/kernel/rhel-9/-/merge_requests/3423 JIRA: https://issues.redhat.com/browse/RHEL-21980 CVE: CVE-2024-57807 Signed-off-by: Tomas Henzl <[email protected]> Approved-by: Chris Leech <[email protected]> Approved-by: Marc Milgram <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: CKI KWF Bot <[email protected]>
2 parents 9800657 + e7b8686 commit 6093605

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/scsi/megaraid/megaraid_sas_base.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8905,8 +8905,11 @@ megasas_aen_polling(struct work_struct *work)
89058905
(ld_target_id / MEGASAS_MAX_DEV_PER_CHANNEL),
89068906
(ld_target_id % MEGASAS_MAX_DEV_PER_CHANNEL),
89078907
0);
8908-
if (sdev1)
8908+
if (sdev1) {
8909+
mutex_unlock(&instance->reset_mutex);
89098910
megasas_remove_scsi_device(sdev1);
8911+
mutex_lock(&instance->reset_mutex);
8912+
}
89108913

89118914
event_type = SCAN_VD_CHANNEL;
89128915
break;

0 commit comments

Comments
 (0)