aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2008-07-03 00:13:36 -0400
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-07-03 04:51:57 -0400
commit03d2f897e9fb3218989baa2139a951ce7f5414bf (patch)
tree2949bdd7fbe49c3754cdc8140d5b67b37f0edd66 /net/ipv4/af_inet.c
parent623d1a1af77bd52a389c6eda5920e28eb2ee468b (diff)
ipv4: Do cleanup for ip_mr_init
Same as ip6_mr_init(), make ip_mr_init() return errno if fails. But do not do error handling in inet_init(), just print a msg. Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r--net/ipv4/af_inet.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 42bd24b64b57..dc411335c14f 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1479,14 +1479,15 @@ static int __init inet_init(void)
1479 * Initialise the multicast router 1479 * Initialise the multicast router
1480 */ 1480 */
1481#if defined(CONFIG_IP_MROUTE) 1481#if defined(CONFIG_IP_MROUTE)
1482 ip_mr_init(); 1482 if (ip_mr_init())
1483 printk(KERN_CRIT "inet_init: Cannot init ipv4 mroute\n");
1483#endif 1484#endif
1484 /* 1485 /*
1485 * Initialise per-cpu ipv4 mibs 1486 * Initialise per-cpu ipv4 mibs
1486 */ 1487 */
1487 1488
1488 if (init_ipv4_mibs()) 1489 if (init_ipv4_mibs())
1489 printk(KERN_CRIT "inet_init: Cannot init ipv4 mibs\n"); ; 1490 printk(KERN_CRIT "inet_init: Cannot init ipv4 mibs\n");
1490 1491
1491 ipv4_proc_init(); 1492 ipv4_proc_init();
1492 1493