scsi: qedi: Fix missing destroy_workqueue() on error in __qedi_probe
authorQinglang Miao <miaoqinglang@huawei.com>
Mon, 9 Nov 2020 09:15:18 +0000 (17:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:46:59 +0000 (13:46 +0100)
commit00fc83950a1d80a02414b0b6cb7e1798ac44da4e
tree8f150d949385ce6a14ec9f04f955b2fbf9f223e9
parent42685b4522253b5e4c161da24f68b5d242cc1e51
scsi: qedi: Fix missing destroy_workqueue() on error in __qedi_probe

[ Upstream commit 62eebd5247c4e4ce08826ad5995cf4dd7ce919dd ]

Add the missing destroy_workqueue() before return from __qedi_probe in the
error handling case when fails to create workqueue qedi->offload_thread.

Link: https://lore.kernel.org/r/20201109091518.55941-1-miaoqinglang@huawei.com
Fixes: ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.")
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qedi/qedi_main.c