summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc
diff options
context:
space:
mode:
authorDan Carpenter2017-05-03 23:22:16 +0200
committerMartin K. Petersen2017-05-09 03:50:16 +0200
commit0d618cf4f24cebb822eaf57c27985266e4110176 (patch)
tree31686560ba7189db3f003bea00bb8c93f1c13304 /drivers/scsi/lpfc
parentscsi: qedf: properly update arguments position in function call (diff)
downloadkernel-qcow2-linux-0d618cf4f24cebb822eaf57c27985266e4110176.tar.gz
kernel-qcow2-linux-0d618cf4f24cebb822eaf57c27985266e4110176.tar.xz
kernel-qcow2-linux-0d618cf4f24cebb822eaf57c27985266e4110176.zip
scsi: lpfc: double lock typo in lpfc_ns_rsp()
There is a double lock bug here so this will deadlock instead of unlocking. Fixes: 1c5b12f76301 ("Fix implicit logo and RSCN handling for NVMET") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r--drivers/scsi/lpfc/lpfc_ct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c
index 1487406aea77..c7962dae4dab 100644
--- a/drivers/scsi/lpfc/lpfc_ct.c
+++ b/drivers/scsi/lpfc/lpfc_ct.c
@@ -630,7 +630,7 @@ lpfc_ns_rsp(struct lpfc_vport *vport, struct lpfc_dmabuf *mp, uint8_t fc4_type,
NLP_EVT_DEVICE_RECOVERY);
spin_lock_irq(shost->host_lock);
ndlp->nlp_flag &= ~NLP_NVMET_RECOV;
- spin_lock_irq(shost->host_lock);
+ spin_unlock_irq(shost->host_lock);
}
}