2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/net/core
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
..
datagram.c [PATCH] POLLRDHUP/EPOLLRDHUP handling for half-closed devices notifications 2006-03-25 08:22:56 -08:00
dev_mcast.c [NET]: Remove more unneeded typecasts on *malloc() 2006-01-11 16:32:14 -08:00
dev.c [NET]: Fix hotplug race during device registration. 2006-04-09 22:32:48 -07:00
dst.c [PATCH] timer initialization cleanup: DEFINE_TIMER 2005-09-09 14:03:48 -07:00
dv.c [NET]: More kzalloc conversions. 2006-04-09 22:25:48 -07:00
ethtool.c [PATCH] capable/capability.h (net/) 2006-01-11 18:42:14 -08:00
filter.c [NET]: more whitespace issues in net/core/filter.c 2006-01-23 16:26:16 -08:00
flow.c [NET]: More kzalloc conversions. 2006-04-09 22:25:48 -07:00
gen_estimator.c [NET]: More kzalloc conversions. 2006-04-09 22:25:48 -07:00
gen_stats.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iovec.c [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
link_watch.c [NET]: Convert RTNL to mutex. 2006-03-20 22:23:58 -08:00
Makefile [PATCH] net/: fix the WIRELESS_EXT abuse 2006-01-30 20:35:30 -05:00
neighbour.c [NET]: More kzalloc conversions. 2006-04-09 22:25:48 -07:00
net-sysfs.c [NET]: Fix an off-by-21-or-49 error. 2006-04-09 22:25:26 -07:00
netpoll.c [NET]: Convert RTNL to mutex. 2006-03-20 22:23:58 -08:00
pktgen.c [PKTGEN]: Add MPLS extension. 2006-03-23 01:10:26 -08:00
request_sock.c [NET]: More kzalloc conversions. 2006-04-09 22:25:48 -07:00
rtnetlink.c [PATCH] WE-20 for kernel 2.6.16 2006-03-23 07:12:57 -05:00
scm.c [PATCH] capable/capability.h (net/) 2006-01-11 18:42:14 -08:00
skbuff.c [PATCH] slab: implement /proc/slab_allocators 2006-03-25 08:22:49 -08:00
sock.c [NET]: add SO_RCVBUF comment 2006-03-31 02:09:36 -08:00
stream.c [NET]: Avoid atomic xchg() for non-error case 2006-01-03 13:10:44 -08:00
sysctl_net_core.c [IPSEC]: Sync series - core changes 2006-03-20 19:15:11 -08:00
utils.c [PATCH] percpu data: only iterate over possible CPUs 2006-02-05 11:06:51 -08:00
wireless.c [PATCH] WE-20 for kernel 2.6.16 2006-03-23 07:12:57 -05:00