diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index e1b7cfaccd65..b370230fe1d3 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2326,7 +2326,7 @@ __be16 skb_network_protocol(struct sk_buff *skb, int *depth) | |||
2326 | */ | 2326 | */ |
2327 | if (type == htons(ETH_P_8021Q) || type == htons(ETH_P_8021AD)) { | 2327 | if (type == htons(ETH_P_8021Q) || type == htons(ETH_P_8021AD)) { |
2328 | if (vlan_depth) { | 2328 | if (vlan_depth) { |
2329 | if (unlikely(WARN_ON(vlan_depth < VLAN_HLEN))) | 2329 | if (WARN_ON(vlan_depth < VLAN_HLEN)) |
2330 | return 0; | 2330 | return 0; |
2331 | vlan_depth -= VLAN_HLEN; | 2331 | vlan_depth -= VLAN_HLEN; |
2332 | } else { | 2332 | } else { |