Skip to content
Snippets Groups Projects
Commit aa5f66d5 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarMaxime Bizon <mbizon@freebox.fr>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent cc63ec76
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment