From: Eric Dumazet Date: Wed, 29 Oct 2008 18:19:11 +0000 (-0700) Subject: udp: udp_get_next() should use spin_unlock_bh() X-Git-Tag: firefly_0821_release~16481^2~946 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f52b5054ec108aaa9e903850d6b62af8ae3fe6ae;p=firefly-linux-kernel-4.4.55.git udp: udp_get_next() should use spin_unlock_bh() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 5ba03401b914..ced820318f94 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1579,7 +1579,7 @@ static struct sock *udp_get_next(struct seq_file *seq, struct sock *sk) } while (sk && (!net_eq(sock_net(sk), net) || sk->sk_family != state->family)); if (!sk) { - spin_unlock(&state->udp_table->hash[state->bucket].lock); + spin_unlock_bh(&state->udp_table->hash[state->bucket].lock); return udp_get_first(seq, state->bucket + 1); } return sk;