summaryrefslogtreecommitdiff
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-10-08 21:47:29 -0700
committerDavid S. Miller <davem@davemloft.net>2013-10-09 01:51:57 -0400
commitf69b923a758f598fd6bb69e57564b59506f4f1fc (patch)
treefef4eb393db37bc1c2f78e26de5752943f2b7eb2 /net/ipv4/udp.c
parentefe4208f47f907b86f528788da711e8ab9dea44d (diff)
downloadlinux-stable-f69b923a758f598fd6bb69e57564b59506f4f1fc.tar.gz
linux-stable-f69b923a758f598fd6bb69e57564b59506f4f1fc.tar.bz2
linux-stable-f69b923a758f598fd6bb69e57564b59506f4f1fc.zip
udp: fix a typo in __udp4_lib_mcast_demux_lookup
At this point sk might contain garbage. Signed-off-by: Eric Dumazet <edumazet@google.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 4226c53daaed..9f27bb800607 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))) {