]> git.hungrycats.org Git - linux/commitdiff
[ATM]: Use skb_pull instead of direct skb mangling.
authorChas Williams <chas@locutus.cmf.nrl.navy.mil>
Sun, 2 Mar 2003 17:09:03 +0000 (09:09 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 2 Mar 2003 17:09:03 +0000 (09:09 -0800)
net/atm/lec.c

index 6aa336e0226f9c6a81820c0a4a1f32b19af6835c..464e89cfecfad2e3f065981b982e88b729b66520 100644 (file)
@@ -706,7 +706,7 @@ lec_push(struct atm_vcc *vcc, struct sk_buff *skb)
                         lec_arp_check_empties(priv, vcc, skb);
                 }
                 skb->dev = dev;
-                skb->data += 2; /* skip lec_id */
+                skb_pull(skb->data, 2); /* skip lec_id */
 #ifdef CONFIG_TR
                 if (priv->is_trdev) skb->protocol = tr_type_trans(skb, dev);
                 else