]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV6] route6/fib6: Don't panic a kmem_cache_create.
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 7 Dec 2007 08:45:16 +0000 (00:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:56:48 +0000 (14:56 -0800)
commit300b34703af8a28838c9aab64b19ae424e41b178
tree4d37b1e258ccb4b07a0b9375279e5af79c42f3d0
parent1d7414ab6605e7cdff4a6302dccd71a77f93055a
[IPV6] route6/fib6: Don't panic a kmem_cache_create.

If the kmem_cache_creation fails, the kernel will panic. It is
acceptable if the system is booting, but if the ipv6 protocol is
compiled as a module and it is loaded after the system has booted, do
we want to panic instead of just failing to initialize the protocol ?

The init function is now returning an error and this one is checked
for protocol initialization. So the ipv6 protocol will safely fails.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Acked-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c
net/ipv6/route.c