Commit 5a283df4 authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: Use skb_pull instead of direct skb mangling.

parent cb3e2748
...@@ -706,7 +706,7 @@ lec_push(struct atm_vcc *vcc, struct sk_buff *skb) ...@@ -706,7 +706,7 @@ lec_push(struct atm_vcc *vcc, struct sk_buff *skb)
lec_arp_check_empties(priv, vcc, skb); lec_arp_check_empties(priv, vcc, skb);
} }
skb->dev = dev; skb->dev = dev;
skb->data += 2; /* skip lec_id */ skb_pull(skb->data, 2); /* skip lec_id */
#ifdef CONFIG_TR #ifdef CONFIG_TR
if (priv->is_trdev) skb->protocol = tr_type_trans(skb, dev); if (priv->is_trdev) skb->protocol = tr_type_trans(skb, dev);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment