]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4/IPV6]: Fix inet{,6} device initialization order.
authorDavid L Stevens <dlstevens@us.ibm.com>
Thu, 4 Jan 2007 20:31:14 +0000 (12:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jan 2007 20:31:14 +0000 (12:31 -0800)
commite974469e2b5885ce8fec3148ab6e99ee3067dd00
tree36f558c08ebdd1830536aab92b8abac79330cdbc
parentd9fcb38f79147631ca3fbd5378d8970ce6d97c83
[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>
net/ipv4/devinet.c
net/ipv6/addrconf.c