mac80211: add might_sleep to hw_config
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 14 Oct 2008 14:38:55 +0000 (16:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 31 Oct 2008 23:00:22 +0000 (19:00 -0400)
Just to catch bugs when changing mac80211.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c

index ab8a860444af48d51a144cf8983db9710faf8fa8..ffff54944f9d718b8fa8994634561bd0ec156588 100644 (file)
@@ -203,6 +203,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
        int ret = 0;
        int power;
 
+       might_sleep();
+
        if (local->sw_scanning)
                chan = local->scan_channel;
        else