We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30b45d3 commit 7fc0ebbCopy full SHA for 7fc0ebb
net/core/dev.c
@@ -2608,7 +2608,8 @@ netdev_features_t netif_skb_features(struct sk_buff *skb)
2608
2609
if (!vlan_tx_tag_present(skb)) {
2610
if (unlikely(protocol == htons(ETH_P_8021Q) ||
2611
- protocol == htons(ETH_P_8021AD))) {
+ protocol == htons(ETH_P_8021AD)) &&
2612
+ likely(pskb_may_pull(skb, VLAN_ETH_HLEN))) {
2613
struct vlan_ethhdr *veh = (struct vlan_ethhdr *)skb->data;
2614
protocol = veh->h_vlan_encapsulated_proto;
2615
} else {
0 commit comments