diff options
author | Maxime Bizon <mbizon@freebox.fr> | 2010-07-21 15:21:38 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-21 19:13:42 (GMT) |
commit | 5a652052fedbd7869572c757dd2ffc2ed420c69d (patch) | |
tree | c147fefc826f74e84a887a069235c22eadc0f561 /include/linux/if_tun.h | |
parent | acd82aa868c2133149370c18d85f8005fbf5611e (diff) | |
download | linux-fsl-qoriq-5a652052fedbd7869572c757dd2ffc2ed420c69d.tar.xz |
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: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/if_tun.h')
0 files changed, 0 insertions, 0 deletions