]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4/IPV6]: Fail registration if inet device construction fails
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 Jul 2007 00:04:52 +0000 (17:04 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 31 Jul 2007 09:28:16 +0000 (02:28 -0700)
commit7261a122c42172600ba45ba320c6050fbe23db60
tree301422d7c0fba653dfb5e32c80fedc2cede627e3
parent09d35cfddc34d6e628811740a67c9e25106e095e
[IPV4/IPV6]: Fail registration if inet device construction fails

Now that netdev notifications can fail, we can use this to signal
errors during registration for IPv4/IPv6.  In particular, if we
fail to allocate memory for the inet device, we can fail the netdev
registration.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c
net/ipv6/addrconf.c