Skip to content

Commit

Permalink
[IPV6]: bh_lock_sock_nested on tcp_v6_rcv
Browse files Browse the repository at this point in the history
A while ago Ingo patched tcp_v4_rcv on net/ipv4/tcp_ipv4.c to use
bh_lock_sock_nested and silence a lock validator warning. This fixed
it for IPv4, but recently I saw a report of the same warning on IPv6.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Fabio Olive Leite authored and David S. Miller committed Sep 29, 2006
1 parent 2ff7125 commit 293b9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/tcp_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ static int tcp_v6_rcv(struct sk_buff **pskb)

skb->dev = NULL;

bh_lock_sock(sk);
bh_lock_sock_nested(sk);
ret = 0;
if (!sock_owned_by_user(sk)) {
#ifdef CONFIG_NET_DMA
Expand Down

0 comments on commit 293b9c4

Please sign in to comment.