diff options
-rw-r--r-- | net/ipv4/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index c3ecec8a9e1c..f760b86e7530 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -970,12 +970,12 @@ void udp_lib_unhash(struct sock *sk) | |||
970 | unsigned int hash = udp_hashfn(sock_net(sk), sk->sk_hash); | 970 | unsigned int hash = udp_hashfn(sock_net(sk), sk->sk_hash); |
971 | struct udp_hslot *hslot = &udptable->hash[hash]; | 971 | struct udp_hslot *hslot = &udptable->hash[hash]; |
972 | 972 | ||
973 | spin_lock(&hslot->lock); | 973 | spin_lock_bh(&hslot->lock); |
974 | if (sk_del_node_init_rcu(sk)) { | 974 | if (sk_del_node_init_rcu(sk)) { |
975 | inet_sk(sk)->num = 0; | 975 | inet_sk(sk)->num = 0; |
976 | sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); | 976 | sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); |
977 | } | 977 | } |
978 | spin_unlock(&hslot->lock); | 978 | spin_unlock_bh(&hslot->lock); |
979 | } | 979 | } |
980 | EXPORT_SYMBOL(udp_lib_unhash); | 980 | EXPORT_SYMBOL(udp_lib_unhash); |
981 | 981 | ||