scsi: lpfc: ensure els_wq is being checked before destroying it
authorColin Ian King <colin.king@canonical.com>
Sat, 6 May 2017 22:13:55 +0000 (23:13 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 May 2017 02:10:25 +0000 (22:10 -0400)
commit019c0d66f66a8612bb867caf05e865a4766238a4
tree77b22fa80d634e4c1f5cbbddf2da82bebe6984e7
parent07cc1ccfb84320582c9ac389a21cd81df82bc123
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>
drivers/scsi/lpfc/lpfc_init.c