diff options
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r-- | net/ipv4/af_inet.c | 6 |
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: | |||
1324 | err_udp_mib: | 1328 | err_udp_mib: |
1325 | snmp_mib_free((void **)tcp_statistics); | 1329 | snmp_mib_free((void **)tcp_statistics); |
1326 | err_tcp_mib: | 1330 | err_tcp_mib: |
1331 | snmp_mib_free((void **)icmpmsg_statistics); | ||
1332 | err_icmpmsg_mib: | ||
1327 | snmp_mib_free((void **)icmp_statistics); | 1333 | snmp_mib_free((void **)icmp_statistics); |
1328 | err_icmp_mib: | 1334 | err_icmp_mib: |
1329 | snmp_mib_free((void **)ip_statistics); | 1335 | snmp_mib_free((void **)ip_statistics); |