Search Linux Wireless

[PATCH] mac80211: add might_sleep to hw_config

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

 



Just to catch bugs when changing mac80211.

Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
---
 net/mac80211/main.c |    2 ++
 1 file changed, 2 insertions(+)

--- everything.orig/net/mac80211/main.c	2008-10-14 16:37:12.000000000 +0200
+++ everything/net/mac80211/main.c	2008-10-14 16:37:23.000000000 +0200
@@ -203,6 +203,8 @@ int ieee80211_hw_config(struct ieee80211
 	int ret = 0;
 	int power;
 
+	might_sleep();
+
 	if (local->sw_scanning)
 		chan = local->scan_channel;
 	else


--
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