scsi: qla2xxx: Initialize Work element before requesting IRQs
authorHimanshu Madhani <himanshu.madhani@cavium.com>
Mon, 16 Oct 2017 18:26:05 +0000 (11:26 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Oct 2017 03:12:36 +0000 (23:12 -0400)
commit1010f21ecf8ac43be676d498742de18fa6c20987
tree61dffeb0eb6aea82331fe605d4c86de0329741a9
parentab31fd0ce65ec93828b617123792c1bb7c6dcc42
scsi: qla2xxx: Initialize Work element before requesting IRQs

commit a9e170e28636 ("scsi: qla2xxx: Fix uninitialized work element")
moved initializiation of work element earlier in the probe to fix call
stack. However, it still leaves a window where interrupt can be
generated before work element is initialized. Fix that window by
initializing work element before we are requesting IRQs.

[mkp: fixed typos]

Fixes: a9e170e28636 ("scsi: qla2xxx: Fix uninitialized work element")
Cc: <stable@vger.kernel.org> # 4.13
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c