kernel-ark/net
Sergey Vlasov 9469d458b9 [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>
2006-04-09 22:32:48 -07:00
..
802
8021q
appletalk [NET]: Fix ipx/econet/appletalk/irda ioctl crashes 2006-03-28 17:02:43 -08:00
atm
ax25
bluetooth [BLUETOOTH] sco: Possible double free. 2006-04-09 22:25:29 -07:00
bridge [NETFILTER]: Fix fragmentation issues with bridge netfilter 2006-04-09 22:25:23 -07:00
core [NET]: Fix hotplug race during device registration. 2006-04-09 22:32:48 -07:00
dccp [DCCP]: Use NULL for pointers, comfort sparse. 2006-03-29 13:58:25 -08:00
decnet [DECNET]: Fix refcount 2006-03-29 13:57:31 -08:00
econet [ECONET]: Convert away from SOCKOPS_WRAPPED 2006-03-28 17:02:43 -08:00
ethernet
ieee80211 [PATCH] softmac: reduce default rate to 11Mbps. 2006-03-27 14:04:13 -05:00
ipv4 [NETFILTER]: H.323 helper: remove changelog 2006-04-09 22:25:43 -07:00
ipv6 [NETFILTER]: Fix build with CONFIG_NETFILTER=y/m on IA64 2006-04-09 22:25:49 -07:00
ipx [NET]: Fix ipx/econet/appletalk/irda ioctl crashes 2006-03-28 17:02:43 -08:00
irda [NET]: Fix ipx/econet/appletalk/irda ioctl crashes 2006-03-28 17:02:43 -08:00
key
lapb
llc
netfilter [NETFILTER]: Convert conntrack/ipt_REJECT to new checksumming functions 2006-04-09 22:25:42 -07:00
netlink
netrom
packet
rose
rxrpc
sched [PKT_SCHED] act_police: Rename methods. 2006-04-09 22:25:46 -07:00
sctp
sunrpc [PATCH] mark f_ops const in the inode 2006-03-28 09:16:05 -08:00
tipc
unix
wanrouter
x25
xfrm [IPSEC]: Kill unused decap state structure 2006-04-01 00:54:16 -08:00
compat.c [NETFILTER]: iptables 32bit compat layer 2006-04-01 02:25:19 -08:00
Kconfig
Makefile
nonet.c [PATCH] Make most file operations structs in fs/ const 2006-03-28 09:16:06 -08:00
socket.c [NET]: Fully fix the memory leaks in sys_accept(). 2006-04-01 12:48:36 -08:00
sysctl_net.c
TUNABLE