Merge branch 'for-linus' of git://selinuxproject.org/~jmorris/linux-security
[platform/adaptation/renesas_rcar/renesas_kernel.git] / net / bridge / br_forward.c
index ee64287..61f6534 100644 (file)
@@ -98,7 +98,7 @@ static void __br_forward(const struct net_bridge_port *to, struct sk_buff *skb)
 /* called with rcu_read_lock */
 void br_deliver(const struct net_bridge_port *to, struct sk_buff *skb)
 {
-       if (should_deliver(to, skb)) {
+       if (to && should_deliver(to, skb)) {
                __br_deliver(to, skb);
                return;
        }