[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1381294049.4971.3.camel@edumazet-glaptop.roam.corp.google.com>
Date: Tue, 08 Oct 2013 21:47:29 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
Cc: shawn.bohrer@...il.com, netdev@...r.kernel.org,
tomk@...advisors.com, sbohrer@...advisors.com
Subject: [PATCH net-next] udp: fix a typo in __udp4_lib_mcast_demux_lookup
From: Eric Dumazet <edumazet@...gle.com>
At this point sk might contain garbage.
Signed-off-by: Eric Dumazet <edumazet@...gle.com>
---
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 4226c53..9f27bb8 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1847,7 +1847,7 @@ begin:
if (count != 1 ||
unlikely(!atomic_inc_not_zero_hint(&result->sk_refcnt, 2)))
result = NULL;
- else if (unlikely(!__udp_is_mcast_sock(net, sk,
+ else if (unlikely(!__udp_is_mcast_sock(net, result,
loc_port, loc_addr,
rmt_port, rmt_addr,
dif, hnum))) {
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists