aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2008-10-29 14:19:11 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-29 14:19:11 -0400
commitf52b5054ec108aaa9e903850d6b62af8ae3fe6ae (patch)
treed837cd5d25d0d1346874fda598a54151bd98dbfc /net/ipv4/udp.c
parent8203efb3c612743fecb1ed67cf1daf9d9c127462 (diff)
udp: udp_get_next() should use spin_unlock_bh()
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c2
1 files changed, 1 insertions, 1 deletions
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)
1579 } while (sk && (!net_eq(sock_net(sk), net) || sk->sk_family != state->family)); 1579 } while (sk && (!net_eq(sock_net(sk), net) || sk->sk_family != state->family));
1580 1580
1581 if (!sk) { 1581 if (!sk) {
1582 spin_unlock(&state->udp_table->hash[state->bucket].lock); 1582 spin_unlock_bh(&state->udp_table->hash[state->bucket].lock);
1583 return udp_get_first(seq, state->bucket + 1); 1583 return udp_get_first(seq, state->bucket + 1);
1584 } 1584 }
1585 return sk; 1585 return sk;