Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Dumazet and committed by
David S. Miller
f69b923a efe4208f

+1 -1
+1 -1
net/ipv4/udp.c
··· 1847 1847 if (count != 1 || 1848 1848 unlikely(!atomic_inc_not_zero_hint(&result->sk_refcnt, 2))) 1849 1849 result = NULL; 1850 - else if (unlikely(!__udp_is_mcast_sock(net, sk, 1850 + else if (unlikely(!__udp_is_mcast_sock(net, result, 1851 1851 loc_port, loc_addr, 1852 1852 rmt_port, rmt_addr, 1853 1853 dif, hnum))) {