From: Johannes Berg Date: Tue, 24 Mar 2009 08:35:46 +0000 (+0100) Subject: cfg80211: fix locking in nl80211_set_wiphy X-Git-Tag: v2.6.30-rc1~642^2^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bbf4d56583dd52c429d88f43cb614bdbe5deea6;p=pandora-kernel.git 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 Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed