Skip to content

Commit f69b923

Browse files
edumazetdavem330
authored andcommitted
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>
1 parent efe4208 commit f69b923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/udp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ static struct sock *__udp4_lib_mcast_demux_lookup(struct net *net,
18471847
if (count != 1 ||
18481848
unlikely(!atomic_inc_not_zero_hint(&result->sk_refcnt, 2)))
18491849
result = NULL;
1850-
else if (unlikely(!__udp_is_mcast_sock(net, sk,
1850+
else if (unlikely(!__udp_is_mcast_sock(net, result,
18511851
loc_port, loc_addr,
18521852
rmt_port, rmt_addr,
18531853
dif, hnum))) {

0 commit comments

Comments
 (0)