]> git.pld-linux.org Git - packages/kernel.git/blob - 2.2.22-skbuff_panicfix.patch
- added -r to depmod to actually check modules instead of rejecting
[packages/kernel.git] / 2.2.22-skbuff_panicfix.patch
1 diff -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.023222 seconds and 3 git commands to generate.