mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]>
Acked-by: Dick Kennedy <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
07cc1ccfb8
commit
019c0d66f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue