X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=net%2Fipv6%2Fudp.c;h=8d785232b4796b7cafe14a35dedcbb0aaa2c37c2;hb=209ee634bc0d2fa10ac8f799abf09207b5ce489a;hp=e505bb007e9f97995bf64a37702e0dc44a8c4a5c;hpb=3a399a2bc465e7fb0e788bfbffefc9399d628a25;p=mirror_ubuntu-jammy-kernel.git diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index e505bb007e9f..8d785232b479 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -133,7 +133,8 @@ static int compute_score(struct sock *sk, struct net *net, dev_match = udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif); if (!dev_match) return -1; - score++; + if (sk->sk_bound_dev_if) + score++; if (READ_ONCE(sk->sk_incoming_cpu) == raw_smp_processor_id()) score++;