2007-04-30 16:10:34

by Jiri Benc

[permalink] [raw]
Subject: [PATCH] mac80211: destroy workqueue in error path

Created workqueue is not destroyed when ieee80211_register_hw fails.

Signed-off-by: Jiri Benc <[email protected]>

---
net/mac80211/ieee80211.c | 1 +
1 files changed, 1 insertion(+)

--- mac80211.orig/net/mac80211/ieee80211.c
+++ mac80211/net/mac80211/ieee80211.c
@@ -4902,6 +4902,7 @@ fail_dev:
sta_info_stop(local);
fail_sta_info:
debugfs_hw_del(local);
+ destroy_workqueue(local->hw.workqueue);
fail_workqueue:
wiphy_unregister(local->hw.wiphy);
return result;


--
Jiri Benc
SUSE Labs