| Submitter | Eric Dumazet |
|---|---|
| Date | Oct. 29, 2008, 10:19 a.m. |
| Message ID | <490838C6.4060304@cosmosbay.com> |
| Download | mbox | patch |
| Permalink | /patch/6240/ |
| State | Accepted |
| Delegated to: | David Miller |
| Headers | show |
Comments
From: Eric Dumazet <dada1@cosmosbay.com> Date: Wed, 29 Oct 2008 11:19:50 +0100 > [PATCH] udp: udp_get_next() should use spin_unlock_bh() > > Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Applied, thanks Eric. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 5ba0340..ced8203 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;