]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerShan Hai <shan.hai@oracle.com>
Tue, 28 Nov 2017 13:27:26 +0000 (21:27 +0800)
commitf4a6e59085ec82889cea99c7f0453fbb6f7b4046
tree8c3dba6a1df0b5ef05bf5082e29589724a69acb4
parent1bb7eecb3650e929651e13534184cb18df1cf701
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>
(cherry picked from commit 1010f21ecf8ac43be676d498742de18fa6c20987)

Orabug: 27184882

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Ethan Zhao <ethan.zhao@oracle.com>
drivers/scsi/qla2xxx/qla_os.c