Skip to content
Snippets Groups Projects
Commit 5a652052 authored by Maxime Bizon's avatar Maxime Bizon Committed by John W. Linville
Browse files

cfg80211: fix race between sysfs and cfg80211


device_add() is called before adding the phy to the cfg80211 device
list.

So if a userspace program uses sysfs uevents to detect new phy
devices, and queries nl80211 to get phy info, it can get ENODEV even
though the phy exists in sysfs.

An easy workaround is to hold the cfg80211 mutex until the phy is
present in sysfs/cfg80211/debugfs.

Signed-off-by: default avatarMaxime Bizon <mbizon@freebox.fr>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent acd82aa8
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