mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
[ICMP]: Add return code to icmp_init.
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>
This commit is contained in:
parent
9b0f976f27
commit
a5710d6582
3 changed files with 25 additions and 6 deletions
|
@ -48,7 +48,7 @@ struct sk_buff;
|
|||
extern void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info);
|
||||
extern int icmp_rcv(struct sk_buff *skb);
|
||||
extern int icmp_ioctl(struct sock *sk, int cmd, unsigned long arg);
|
||||
extern void icmp_init(void);
|
||||
extern int icmp_init(void);
|
||||
extern void icmp_out_count(unsigned char type);
|
||||
|
||||
/* Move into dst.h ? */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue