scsi: qla2xxx: fix a potential NULL pointer dereference
authorAllen Pais <allen.pais@oracle.com>
Wed, 18 Sep 2019 16:36:58 +0000 (22:06 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Oct 2019 03:29:13 +0000 (23:29 -0400)
commit35a79a63517981a8aea395497c548776347deda8
treef45fa57b3d842265620130f6af537e0fe11dcb6a
parentb23f330d5145b92f90cf16f1adc5444ad06764b4
scsi: qla2xxx: fix a potential NULL pointer dereference

alloc_workqueue is not checked for errors and as a result a potential
NULL dereference could occur.

Link: https://lore.kernel.org/r/1568824618-4366-1-git-send-email-allen.pais@oracle.com
Signed-off-by: Allen Pais <allen.pais@oracle.com>
Reviewed-by: Martin Wilck <mwilck@suse.com>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c