]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: qla2xxx: Use reinit_completion on mbx_intr_comp
authorTony Battersby <tonyb@cybernetics.com>
Mon, 10 Nov 2025 15:51:28 +0000 (10:51 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Nov 2025 23:07:50 +0000 (18:07 -0500)
commit957aa5974989fba4ae4f807ebcb27f12796edd4d
treead35c3f1550d3c82d692ca25ddf06544c33eb0cf
parent4f6aaade2a22ac428fa99ed716cf2b87e79c9837
scsi: qla2xxx: Use reinit_completion on mbx_intr_comp

If a mailbox command completes immediately after
wait_for_completion_timeout() times out, ha->mbx_intr_comp could be left
in an inconsistent state, causing the next mailbox command not to wait
for the hardware.  Fix by reinitializing the completion before use.

Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Link: https://patch.msgid.link/11b6485e-0bfd-4784-8f99-c06a196dad94@cybernetics.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_mbx.c