]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cw1200: fix missing destroy_workqueue() on error in cw1200_init_common
authorQinglang Miao <miaoqinglang@huawei.com>
Thu, 19 Nov 2020 07:08:42 +0000 (15:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:25:56 +0000 (11:25 +0100)
commitb62e01be3e95871f15e0a22244d44f82c69c48dc
tree6bf9c6630ac12b43c2d8b41b0798cc5fa538dd65
parentb6d1a50c57c272f8ea04c36f8c251b4a9ec39e4e
cw1200: fix missing destroy_workqueue() on error in cw1200_init_common

[ Upstream commit 7ec8a926188eb8e7a3cbaca43ec44f2d7146d71b ]

Add the missing destroy_workqueue() before return from
cw1200_init_common in the error handling case.

Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201119070842.1011-1-miaoqinglang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/st/cw1200/main.c