kernel-aes67/net/wireless
Johannes Berg 4bbf4d5658 cfg80211: fix locking in nl80211_set_wiphy
Luis reports that there's a circular locking dependency;
this is because cfg80211_dev_rename() will acquire the
cfg80211_mutex while the device mutex is held, while
this normally is done the other way around. The solution
is to open-code the device-getting in nl80211_set_wiphy
and require holding the mutex around cfg80211_dev_rename
rather than acquiring it within.

Also fix a bug -- rtnl locking is expected by drivers so
we need to provide it.

Reported-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-03-27 20:13:20 -04:00
..
core.c cfg80211: fix locking in nl80211_set_wiphy 2009-03-27 20:13:20 -04:00
core.h cfg80211: fix locking in nl80211_set_wiphy 2009-03-27 20:13:20 -04:00
Kconfig cfg80211/nl80211: remove usage of CONFIG_NL80211 2009-03-27 20:12:42 -04:00
lib80211_crypt_ccmp.c lib80211: silence excessive crypto debugging messages 2009-03-16 18:01:58 -04:00
lib80211_crypt_tkip.c lib80211: silence excessive crypto debugging messages 2009-03-16 18:01:58 -04:00
lib80211_crypt_wep.c lib80211: absorb crypto bits from net/ieee80211 2008-11-21 11:08:17 -05:00
lib80211.c lib80211: consolidate crypt init routines 2008-11-21 11:08:17 -05:00
Makefile nl80211: Event notifications for MLME events 2009-03-27 20:13:02 -04:00
mlme.c nl80211: Event notifications for MLME events 2009-03-27 20:13:02 -04:00
nl80211.c cfg80211: fix locking in nl80211_set_wiphy 2009-03-27 20:13:20 -04:00
nl80211.h nl80211: Event notifications for MLME events 2009-03-27 20:13:02 -04:00
radiotap.c wireless: use get/put_unaligned_* helpers 2008-05-14 16:29:32 -04:00
reg.c cfg80211: remove code about country IE support with OLD_REG 2009-03-27 20:13:07 -04:00
reg.h cfg80211: make __regulatory_hint() static 2009-02-27 14:52:59 -05:00
scan.c cfg80211: add feature to hold bss 2009-03-27 20:13:13 -04:00
sysfs.c cfg80211: rename cfg80211_registered_device's idx to wiphy_idx 2009-02-27 14:52:54 -05:00
sysfs.h
util.c wireless: restrict to 32 legacy rates 2009-01-29 16:01:09 -05:00
wext-compat.c cfg80211: accept no-op interface mode changes 2009-03-27 20:13:08 -04:00
wext.c wireless: convert wireless ioctl to net_device_ops 2009-01-06 10:42:24 -08:00