]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix sysfs registration race
authorJohannes Berg <johannes.berg@intel.com>
Thu, 26 Sep 2013 18:03:45 +0000 (20:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 26 Sep 2013 18:03:45 +0000 (20:03 +0200)
commit006f11ddba3f8b462689e3751665babe420d15e2
treee1de25f7c9a1a5f4f7335f7bdf98e54e2263949f
parent85d133a0951a43f25e3838f3b8514ab04cc478ee
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 <mbizon@freebox.fr>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c