mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 16:16:13 +07:00
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>
This commit is contained in:
parent
efe4208f47
commit
f69b923a75
@ -1847,7 +1847,7 @@ static struct sock *__udp4_lib_mcast_demux_lookup(struct net *net,
|
|||||||
if (count != 1 ||
|
if (count != 1 ||
|
||||||
unlikely(!atomic_inc_not_zero_hint(&result->sk_refcnt, 2)))
|
unlikely(!atomic_inc_not_zero_hint(&result->sk_refcnt, 2)))
|
||||||
result = NULL;
|
result = NULL;
|
||||||
else if (unlikely(!__udp_is_mcast_sock(net, sk,
|
else if (unlikely(!__udp_is_mcast_sock(net, result,
|
||||||
loc_port, loc_addr,
|
loc_port, loc_addr,
|
||||||
rmt_port, rmt_addr,
|
rmt_port, rmt_addr,
|
||||||
dif, hnum))) {
|
dif, hnum))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user