On Sat, 2010-07-17 at 05:13 +0200, Maxime Bizon wrote: > 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 both in sysfs and cfg80211 device list. Maybe we should hold the mutex around the debugfs stuff as well? Then tools could even access that race-free, and we can simplify the code by having an "out_unlock" label. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html