Skip to content
Snippets Groups Projects
Commit f52b5054 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

udp: udp_get_next() should use spin_unlock_bh()

parent 8203efb3
No related branches found
No related tags found
No related merge requests found
...@@ -1579,7 +1579,7 @@ static struct sock *udp_get_next(struct seq_file *seq, struct sock *sk) ...@@ -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)); } while (sk && (!net_eq(sock_net(sk), net) || sk->sk_family != state->family));
if (!sk) { 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 udp_get_first(seq, state->bucket + 1);
} }
return sk; return sk;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment