diff options
-rw-r--r-- | net/batman-adv/bridge_loop_avoidance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index 264de88db320..70da18ab41c3 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c | |||
@@ -1380,7 +1380,7 @@ int batadv_bla_is_backbone_gw(struct sk_buff *skb, | |||
1380 | ethhdr = (struct ethhdr *)(((uint8_t *)skb->data) + hdr_size); | 1380 | ethhdr = (struct ethhdr *)(((uint8_t *)skb->data) + hdr_size); |
1381 | 1381 | ||
1382 | if (ntohs(ethhdr->h_proto) == ETH_P_8021Q) { | 1382 | if (ntohs(ethhdr->h_proto) == ETH_P_8021Q) { |
1383 | if (!pskb_may_pull(skb, hdr_size + sizeof(struct vlan_ethhdr))) | 1383 | if (!pskb_may_pull(skb, hdr_size + VLAN_ETH_HLEN)) |
1384 | return 0; | 1384 | return 0; |
1385 | 1385 | ||
1386 | vhdr = (struct vlan_ethhdr *)(skb->data + hdr_size); | 1386 | vhdr = (struct vlan_ethhdr *)(skb->data + hdr_size); |