From: Johannes Berg Date: Thu, 26 Sep 2013 18:03:45 +0000 (+0200) Subject: cfg80211: fix sysfs registration race X-Git-Tag: v3.12-rc7~20^2~71^2^2~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa5f66d5a1df1c2b04bccdcb19711675c765d7c4;p=pandora-kernel.git cfg80211: fix sysfs registration race My locking rework/race fixes caused a regression in the registration, causing uevent notifications for wireless devices before the device is really fully registered and available in nl80211. Fix this by moving the device_add() under rtnl and move the rfkill to afterwards (it can't be under rtnl.) Reported-and-tested-by: Maxime Bizon Signed-off-by: Johannes Berg --- Reading git-diff-tree failed