diff options
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 277d71239d75..2f8039a26b08 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -2578,7 +2578,8 @@ static void __net_exit tcp_sk_exit(struct net *net) | |||
2578 | { | 2578 | { |
2579 | int cpu; | 2579 | int cpu; |
2580 | 2580 | ||
2581 | module_put(net->ipv4.tcp_congestion_control->owner); | 2581 | if (net->ipv4.tcp_congestion_control) |
2582 | module_put(net->ipv4.tcp_congestion_control->owner); | ||
2582 | 2583 | ||
2583 | for_each_possible_cpu(cpu) | 2584 | for_each_possible_cpu(cpu) |
2584 | inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv4.tcp_sk, cpu)); | 2585 | inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv4.tcp_sk, cpu)); |