]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: lpfc: Fix crash on driver unload in wq free
authorJames Smart <jsmart2021@gmail.com>
Wed, 14 Aug 2019 23:56:34 +0000 (16:56 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Aug 2019 02:41:08 +0000 (22:41 -0400)
commit3cee98db2610fb633fcbdd0f85385f60dabbaf75
tree4cd1f030cd7e943a1d3c1d34c5f7f9fe20db1eb4
parent1d755d6477cafea1d371ecc841e22adda0a43d27
scsi: lpfc: Fix crash on driver unload in wq free

If a timer routine uses workqueues, it could fire before the workqueue is
allocated.

Fix by allocating the workqueue before the timer routines are setup

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c