lkml.org 
[lkml]   [1999]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: triggered 2.2.1 kernel panic in ppp

anyways,

i just realized that linux should be able to handle silly machines
that blindly apply vj compression even when it isn't going to be a
win. so, here's a small patch that deals with that. unfortunately, i
can't really test it that well as that's an event that i rarely
encounter. all i can say is that it looks obviously right to me.

--- linux/drivers/net/ppp.c.save Tue Feb 2 11:12:07 1999
+++ linux/drivers/net/ppp.c Tue Feb 16 00:19:20 1999
@@ -2062,7 +2062,11 @@
"ppp: error in VJ decompression\n");
return 0;
}
- skb_put(skb, new_count + PPP_HDRLEN - skb->len);
+ new_count += PPP_HDRLEN;
+ if (new_count > skb->len)
+ skb_put(skb, new_count - skb->len);
+ else
+ skb_trim(skb, new_count);
return rcv_proto_ip(ppp, skb);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.046 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site