Skip to content

Commit

Permalink
udp: udp_get_next() should use spin_unlock_bh()
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and davem330 committed Oct 29, 2008
1 parent 8203efb commit f52b505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f52b505

Please sign in to comment.