8021q: fix mac_len recomputation in vlan_untag()
authorAntonio Quartulli <ordex@autistici.org>
Tue, 2 Oct 2012 06:14:17 +0000 (06:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Oct 2012 02:45:57 +0000 (22:45 -0400)
commit5316cf9a5197eb80b2800e1acadde287924ca975
tree1a36086347433ad7205d996cdd2713f28dc51933
parent786fdf0bbf1c3a1b402bb2da946b93e0b36a8f32
8021q: fix mac_len recomputation in vlan_untag()

skb_reset_mac_len() relies on the value of the skb->network_header pointer,
therefore we must wait for such pointer to be recalculated before computing
the new mac_len value.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c