summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
authorColin Ian King2017-05-07 00:13:55 +0200
committerMartin K. Petersen2017-05-09 04:10:25 +0200
commit019c0d66f66a8612bb867caf05e865a4766238a4 (patch)
tree77b22fa80d634e4c1f5cbbddf2da82bebe6984e7 /drivers/scsi/lpfc/lpfc_init.c
parentscsi: cxlflash: Select IRQ_POLL (diff)
downloadkernel-qcow2-linux-019c0d66f66a8612bb867caf05e865a4766238a4.tar.gz
kernel-qcow2-linux-019c0d66f66a8612bb867caf05e865a4766238a4.tar.xz
kernel-qcow2-linux-019c0d66f66a8612bb867caf05e865a4766238a4.zip
scsi: lpfc: ensure els_wq is being checked before destroying it
I believe there is a typo on the wq destroy of els_wq, currently the driver is checking if els_cq is not null and I think this should be a check on els_wq instead. Detected by CoverityScan, CID#1411629 ("Copy-paste error") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index e85f273e34ac..4b1eb98c228d 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -8854,7 +8854,7 @@ lpfc_sli4_queue_unset(struct lpfc_hba *phba)
lpfc_wq_destroy(phba, phba->sli4_hba.nvmels_wq);
/* Unset ELS work queue */
- if (phba->sli4_hba.els_cq)
+ if (phba->sli4_hba.els_wq)
lpfc_wq_destroy(phba, phba->sli4_hba.els_wq);
/* Unset unsolicited receive queue */