diff options
Diffstat (limited to 'net/8021q')
-rw-r--r-- | net/8021q/vlan_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/8021q/vlan_core.c b/net/8021q/vlan_core.c index 0eb96f7e44be..2dcff0be8acb 100644 --- a/net/8021q/vlan_core.c +++ b/net/8021q/vlan_core.c | |||
@@ -43,6 +43,9 @@ int vlan_hwaccel_do_receive(struct sk_buff *skb) | |||
43 | struct net_device *dev = skb->dev; | 43 | struct net_device *dev = skb->dev; |
44 | struct vlan_rx_stats *rx_stats; | 44 | struct vlan_rx_stats *rx_stats; |
45 | 45 | ||
46 | if (unlikely(!is_vlan_dev(dev))) | ||
47 | return 0; | ||
48 | |||
46 | skb->dev = vlan_dev_info(dev)->real_dev; | 49 | skb->dev = vlan_dev_info(dev)->real_dev; |
47 | netif_nit_deliver(skb); | 50 | netif_nit_deliver(skb); |
48 | 51 | ||