[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)
commitb217d616a15fcfb3caf2a72c1a071c6d3f182f8d
tree301422d7c0fba653dfb5e32c80fedc2cede627e3
parentfcc5a03ac42564e9e255c1134dda47442289e466
[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