/[linux-patches]/genpatches-2.6/tags/2.6.15-11/1025_2_ppp-pon-sign.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.15-11/1025_2_ppp-pon-sign.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 351 - (show annotations) (download)
Wed Mar 29 11:55:38 2006 UTC (12 years, 3 months ago) by dsd
File size: 1280 byte(s)
2.6.15-11 release
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 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21 ---
22 include/linux/skbuff.h | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25 --- linux-2.6.15.1.orig/include/linux/skbuff.h
26 +++ linux-2.6.15.1/include/linux/skbuff.h
27 @@ -927,7 +927,7 @@ static inline int skb_tailroom(const str
28 * Increase the headroom of an empty &sk_buff by reducing the tail
29 * room. This is only allowed for an empty buffer.
30 */
31 -static inline void skb_reserve(struct sk_buff *skb, unsigned int len)
32 +static inline void skb_reserve(struct sk_buff *skb, int len)
33 {
34 skb->data += len;
35 skb->tail += len;

  ViewVC Help
Powered by ViewVC 1.1.20