Search Linux Wireless

[PATCH] mac80211: destroy workqueue in error path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Created workqueue is not destroyed when ieee80211_register_hw fails.

Signed-off-by: Jiri Benc <jbenc@xxxxxxx>

---
 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
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux