net: dsa: tag_ocelot_8021q: break circular dependency with ocelot switch lib
[linux-2.6-microblaze.git] / net / ipv4 / udp.c
index 2a7825a..8536b2a 100644 (file)
@@ -390,7 +390,8 @@ static int compute_score(struct sock *sk, struct net *net,
                                        dif, sdif);
        if (!dev_match)
                return -1;
-       score += 4;
+       if (sk->sk_bound_dev_if)
+               score += 4;
 
        if (READ_ONCE(sk->sk_incoming_cpu) == raw_smp_processor_id())
                score++;