/[linux-patches]/genpatches-2.6/trunk/2.6.14/1411_15.2_ppp-pon-sign.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1411_15.2_ppp-pon-sign.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 8 months ago) by johnm
File MIME type: text/x-diff
File size: 1229 byte(s)
2.6.14-11, rebase against local tree
1 From stable-bounces@linux.kernel.org Fri Jan 20 04:37:22 2006
2 Date: Fri, 20 Jan 2006 04:31:34 -0800
3 From: Andrew Morton <akpm@osdl.org>
4 To: stable@kernel.org
5 Message-Id: <20060120043134.65a14bfd.akpm@osdl.org>
6 Cc: "David S. Miller" <davem@davemloft.net>
7 Subject: [NET]: Make second arg to skb_reserved() signed.
8
9 From: David S. Miller <davem@davemloft.net>
10
11 Some subsystems, such as PPP, can send negative values
12 here. It just happened to work correctly on 32-bit with
13 an unsigned value, but on 64-bit this explodes.
14
15 Figured out by Paul Mackerras based upon several PPP crash
16 reports.
17
18 Signed-off-by: David S. Miller <davem@davemloft.net>
19 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
20 ---
21 include/linux/skbuff.h | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24 --- linux-2.6.15.1.orig/include/linux/skbuff.h
25 +++ linux-2.6.15.1/include/linux/skbuff.h
26 @@ -927,7 +927,7 @@ static inline int skb_tailroom(const str
27 * Increase the headroom of an empty &sk_buff by reducing the tail
28 * room. This is only allowed for an empty buffer.
29 */
30 -static inline void skb_reserve(struct sk_buff *skb, unsigned int len)
31 +static inline void skb_reserve(struct sk_buff *skb, int len)
32 {
33 skb->data += len;
34 skb->tail += len;

  ViewVC Help
Powered by ViewVC 1.1.20