summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Olive Leite <fleite@redhat.com>2006-09-26 07:28:47 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-29 02:53:54 +0200
commit293b9c42511d800b5f7bb2acba50f3e584b8c410 (patch)
treebec6ae33c1e50ed5cf03a7ecf05f5bd88636c0b8
parentMerge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/hwmon-2.6 (diff)
downloadlinux-293b9c42511d800b5f7bb2acba50f3e584b8c410.tar.xz
linux-293b9c42511d800b5f7bb2acba50f3e584b8c410.zip
[IPV6]: bh_lock_sock_nested on tcp_v6_rcv
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>
-rw-r--r--net/ipv6/tcp_ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 2546fc9f0a78..3b6575478fcc 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -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