]> Pileus Git - ~andy/linux/commitdiff
udp: fix a typo in __udp4_lib_mcast_demux_lookup
authorEric Dumazet <edumazet@google.com>
Wed, 9 Oct 2013 04:47:29 +0000 (21:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Oct 2013 05:51:57 +0000 (01:51 -0400)
At this point sk might contain garbage.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c

index 4226c53daaed123b06f4f4b8c486253f887a0733..9f27bb800607d5b0701fe6a8dd6a702eeb58e6e8 100644 (file)
@@ -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))) {