[ICMP]: Add return code to icmp_init.
authorDenis V. Lunev <den@openvz.org>
Fri, 29 Feb 2008 19:14:50 +0000 (11:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Feb 2008 19:14:50 +0000 (11:14 -0800)
icmp_init could fail and this is normal for namespace other than initial.
So, the panic should be triggered only on init_net initialization path.

Additionally create rollback path for icmp_init as a separate function.
It will also be used later during namespace destruction.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found