]> git.pld-linux.org Git - packages/kernel.git/blame - atm-06-skb_pull.patch
- ported from linux-2.4.25-atmdd.patch
[packages/kernel.git] / atm-06-skb_pull.patch
CommitLineData
b5a39c4d
JR
1In message <20030223.214513.120185268.davem@redhat.com>,"David S. Miller" writes:
2>Don't try to modify skb->{data,len} by hands, let the skb_*()
3>interfaces do it. Use skb_pull() in this case.
4
5missed that function when i went looking for it. again, the right way:
6
7Index: linux/net/atm/lec.c
8===================================================================
9RCS file: /home/chas/CVSROOT/linux/net/atm/lec.c,v
10retrieving revision 1.1
11retrieving revision 1.7
12diff -u -d -b -w -r1.1 -r1.7
13--- linux/net/atm/lec.c 20 Feb 2003 13:46:30 -0000 1.1
14+++ linux/net/atm/lec.c 24 Feb 2003 13:34:43 -0000 1.7
15@@ -711,7 +705,7 @@
16 lec_arp_check_empties(priv, vcc, skb);
17 }
18 skb->dev = dev;
19- skb->data += 2; /* skip lec_id */
20+ skb_pull(skb, 2); /* skip lec_id */
21 #ifdef CONFIG_TR
22 if (priv->is_trdev) skb->protocol = tr_type_trans(skb, dev);
23 else
24-
25To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
26the body of a message to majordomo@vger.kernel.org
27More majordomo info at http://vger.kernel.org/majordomo-info.html
28Please read the FAQ at http://www.tux.org/lkml/
This page took 0.101867 seconds and 4 git commands to generate.