aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/tcp.h2
-rw-r--r--net/ipv4/af_inet.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 048f8de724c2..b9d0ba618b6b 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1024,7 +1024,7 @@ static inline int tcp_paws_check(const struct tcp_options_received *rx_opt, int
1024 1024
1025#define TCP_CHECK_TIMER(sk) do { } while (0) 1025#define TCP_CHECK_TIMER(sk) do { } while (0)
1026 1026
1027static inline void tcp_mib_init(void) 1027static inline void tcp_mib_init(struct net *net)
1028{ 1028{
1029 /* See RFC 2012 */ 1029 /* See RFC 2012 */
1030 TCP_ADD_STATS_USER(TCP_MIB_RTOALGORITHM, 1); 1030 TCP_ADD_STATS_USER(TCP_MIB_RTOALGORITHM, 1);
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index dc411335c14f..95a966dd1916 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1363,7 +1363,7 @@ static int __init init_ipv4_mibs(void)
1363 sizeof(struct udp_mib)) < 0) 1363 sizeof(struct udp_mib)) < 0)
1364 goto err_udplite_mib; 1364 goto err_udplite_mib;
1365 1365
1366 tcp_mib_init(); 1366 tcp_mib_init(&init_net);
1367 1367
1368 return 0; 1368 return 0;
1369 1369