projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c72d38
)
cw1200: fix missing destroy_workqueue() on error in cw1200_init_common
author
Qinglang Miao
<miaoqinglang@huawei.com>
Thu, 19 Nov 2020 07:08:42 +0000
(15:08 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Tue, 24 Nov 2020 15:08:16 +0000
(17:08 +0200)
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
drivers/net/wireless/st/cw1200/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/st/cw1200/main.c
b/drivers/net/wireless/st/cw1200/main.c
index
f7fe56a
..
326b1cc
100644
(file)
--- a/
drivers/net/wireless/st/cw1200/main.c
+++ b/
drivers/net/wireless/st/cw1200/main.c
@@
-381,6
+381,7
@@
static struct ieee80211_hw *cw1200_init_common(const u8 *macaddr,
CW1200_LINK_ID_MAX,
cw1200_skb_dtor,
priv)) {
+ destroy_workqueue(priv->workqueue);
ieee80211_free_hw(hw);
return NULL;
}
@@
-392,6
+393,7
@@
static struct ieee80211_hw *cw1200_init_common(const u8 *macaddr,
for (; i > 0; i--)
cw1200_queue_deinit(&priv->tx_queue[i - 1]);
cw1200_queue_stats_deinit(&priv->tx_queue_stats);
+ destroy_workqueue(priv->workqueue);
ieee80211_free_hw(hw);
return NULL;
}