Message ID | 20200421210822.18994-1-wu000273@umn.edu (mailing list archive) |
---|---|
State | Deferred |
Headers | show |
Series | scsi: qla4xxx: Fix a potential race condition. | expand |
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 5504ab11decc..a1400cadb91a 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -9222,8 +9222,10 @@ static int qla4xxx_eh_abort(struct scsi_cmnd *cmd) ha->host_no, id, lun)); wait = 1; } - + + spin_lock_irqsave(&ha->hardware_lock, flags); kref_put(&srb->srb_ref, qla4xxx_srb_compl); + spin_unlock_irqrestore(&ha->hardware_lock, flags); /* Wait for command to complete */ if (wait) {