]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[IPV4/IPV6]: Fix inet{,6} device initialization order.
authorDavid L Stevens <dlstevens@us.ibm.com>
Sat, 6 Jan 2007 00:06:28 +0000 (01:06 +0100)
committerAdrian Bunk <bunk@stusta.de>
Tue, 9 Jan 2007 02:23:31 +0000 (03:23 +0100)
commit30f1962cb4491cfaabcd98715535f4bd7eba4307
treedc89f681c2da9677826b89ad4acc8a7e489fa45b
parentf6fce1f36022c103af046c5548c4eedb7f1c2f4e
[IPV4/IPV6]: Fix inet{,6} device initialization order.

It is important that we only assign dev->ip{,6}_ptr
only after all portions of the inet{,6} are setup.

Otherwise we can receive packets before the multicast
spinlocks et al. are initialized.

Signed-off-by: David L Stevens <dlstevens@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv4/devinet.c
net/ipv6/addrconf.c