aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r--net/ipv4/af_inet.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index e594a2c89661..621b128897d7 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1302,6 +1302,10 @@ static int __init init_ipv4_mibs(void)
1302 sizeof(struct icmp_mib), 1302 sizeof(struct icmp_mib),
1303 __alignof__(struct icmp_mib)) < 0) 1303 __alignof__(struct icmp_mib)) < 0)
1304 goto err_icmp_mib; 1304 goto err_icmp_mib;
1305 if (snmp_mib_init((void **)icmpmsg_statistics,
1306 sizeof(struct icmpmsg_mib),
1307 __alignof__(struct icmpmsg_mib)) < 0)
1308 goto err_icmpmsg_mib;
1305 if (snmp_mib_init((void **)tcp_statistics, 1309 if (snmp_mib_init((void **)tcp_statistics,
1306 sizeof(struct tcp_mib), 1310 sizeof(struct tcp_mib),
1307 __alignof__(struct tcp_mib)) < 0) 1311 __alignof__(struct tcp_mib)) < 0)
@@ -1324,6 +1328,8 @@ err_udplite_mib:
1324err_udp_mib: 1328err_udp_mib:
1325 snmp_mib_free((void **)tcp_statistics); 1329 snmp_mib_free((void **)tcp_statistics);
1326err_tcp_mib: 1330err_tcp_mib:
1331 snmp_mib_free((void **)icmpmsg_statistics);
1332err_icmpmsg_mib:
1327 snmp_mib_free((void **)icmp_statistics); 1333 snmp_mib_free((void **)icmp_statistics);
1328err_icmp_mib: 1334err_icmp_mib:
1329 snmp_mib_free((void **)ip_statistics); 1335 snmp_mib_free((void **)ip_statistics);