]> git.pld-linux.org Git - packages/kernel.git/blame - 2.2.22-skbuff_panicfix.patch
- ugh, missing ;
[packages/kernel.git] / 2.2.22-skbuff_panicfix.patch
CommitLineData
0fa407fb
KT
1diff -urN linux.orig/net/core/skbuff.c linux/net/core/skbuff.c
2--- linux.orig/net/core/skbuff.c Fri Nov 1 17:20:26 2002
3+++ linux/net/core/skbuff.c Fri Nov 1 17:27:48 2002
4@@ -333,13 +333,16 @@
5 {
6 struct sk_buff *n;
7 unsigned long offset;
8- int headroom = skb_headroom(skb);
9+ int delta = newheadroom - skb_headroom(skb);
10+
11+ if (delta <= 0)
12+ delta = 0;
13
14 /*
15 * Allocate the copy buffer
16 */
17
18- n=alloc_skb(skb->truesize+newheadroom-headroom, GFP_ATOMIC);
19+ n=alloc_skb(skb->truesize + delta, GFP_ATOMIC);
20 if(n==NULL)
21 return NULL;
22
This page took 0.069991 seconds and 4 git commands to generate.