aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/x25device.h
diff options
context:
space:
mode:
authorSergey Vlasov <vsu@altlinux.ru>2006-04-09 22:32:48 -0700
committerDavid S. Miller <davem@davemloft.net>2006-04-09 22:32:48 -0700
commit9469d458b90bfb9117cbb488cfa645d94c3921b1 (patch)
tree7b409ef16b310336edddcb396d1601896f39d33b /include/net/x25device.h
parent[IPV6]: Unexport secure_ipv6_port_ephemeral (diff)
downloadlinux-dev-9469d458b90bfb9117cbb488cfa645d94c3921b1.tar.xz
linux-dev-9469d458b90bfb9117cbb488cfa645d94c3921b1.zip
[NET]: Fix hotplug race during device registration.
From: Thomas de Grenier de Latour <degrenier@easyconnect.fr> On Sun, 9 Apr 2006 21:56:59 +0400, Sergey Vlasov <vsu@altlinux.ru> wrote: > However, show_address() does not output anything unless > dev->reg_state == NETREG_REGISTERED - and this state is set by > netdev_run_todo() only after netdev_register_sysfs() returns, so in > the meantime (while netdev_register_sysfs() is busy adding the > "statistics" attribute group) some process may see an empty "address" > attribute. I've tried the attached patch, suggested by Sergey Vlasov on hotplug-devel@, and as far as i can test it works just fine. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/x25device.h')
0 files changed, 0 insertions, 0 deletions