diff --git a/net/sched/em_meta.c b/net/sched/em_meta.c index 72cf86e3c0907c876b744b201cd368442c7f6313..fad596bf32d76e89d72d712117e5ec451465ecdf 100644 --- a/net/sched/em_meta.c +++ b/net/sched/em_meta.c @@ -176,8 +176,10 @@ META_COLLECTOR(var_dev) META_COLLECTOR(int_vlan_tag) { - unsigned short uninitialized_var(tag); - if (vlan_get_tag(skb, &tag) < 0) + unsigned short tag; + + tag = vlan_tx_tag_get(skb); + if (!tag && __vlan_get_tag(skb, &tag)) *err = -1; else dst->value = tag;