]> git.itanic.dy.fi Git - linux-stable/commit
scsi: lpfc: Add missing destroy_workqueue() in error path
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 23 Aug 2022 04:42:37 +0000 (12:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:04:54 +0000 (12:04 +0200)
commitd0e7be0dc9f2c6b6f14755748a85c1697c0ebbbf
tree662f63058177179be627acf02e66d6274e00fdc9
parent5682c94644fde72f72bded6580c38189ffc856b5
scsi: lpfc: Add missing destroy_workqueue() in error path

commit da6d507f5ff328f346b3c50e19e19993027b8ffd upstream.

Add the missing destroy_workqueue() before return from
lpfc_sli4_driver_resource_setup() in the error path.

Link: https://lore.kernel.org/r/20220823044237.285643-1-yangyingliang@huawei.com
Fixes: 3cee98db2610 ("scsi: lpfc: Fix crash on driver unload in wq free")
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/lpfc/lpfc_init.c