]> err.no Git - linux-2.6/commitdiff
[IPV6]: bh_lock_sock_nested on tcp_v6_rcv
authorFabio Olive Leite <fleite@redhat.com>
Tue, 26 Sep 2006 05:28:47 +0000 (22:28 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 00:53:54 +0000 (17:53 -0700)
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>
net/ipv6/tcp_ipv6.c

index 2546fc9f0a78b14559fc380b365665ad02afaed6..3b6575478fcc381aae64ee2c0d7b2b791d5f1846 100644 (file)
@@ -1237,7 +1237,7 @@ process:
 
        skb->dev = NULL;
 
-       bh_lock_sock(sk);
+       bh_lock_sock_nested(sk);
        ret = 0;
        if (!sock_owned_by_user(sk)) {
 #ifdef CONFIG_NET_DMA