Commit d3e15d6e authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[XFRM]: Don't panic in xfrm_user_init

Since xfrm_user can be built as a module it's best not to panic
when something goes wrong in xfrm_user_init.  Call me a wimp for
not fixing netlink_kernel_init's return value :)
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8aa4666e
......@@ -1237,8 +1237,7 @@ static int __init xfrm_user_init(void)
xfrm_nl = netlink_kernel_create(NETLINK_XFRM, xfrm_netlink_rcv);
if (xfrm_nl == NULL)
panic("xfrm_user_init: cannot initialize xfrm_nl\n");
return -ENOMEM;
xfrm_register_km(&netlink_mgr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment