Re: [Patch] Netlink BUG() on AMD64

From: David S. Miller
Date: Wed Feb 11 2004 - 22:50:05 EST


On Thu, 12 Feb 2004 03:58:25 +0900 (JST)
YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx> wrote:

> In article <20040212.034537.11291491.yoshfuji@xxxxxxxxxxxxxx> (at Thu, 12 Feb 2004 03:45:37 +0900 (JST)), YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx> says:
>
> > In article <20040211181113.GA2849@xxxxxxxxxx> (at Wed, 11 Feb 2004 19:11:14 +0100), Jan Kasprzak <kas@xxxxxxxxxxxxxxxxxxx> says:
> >
> > > --- linux-2.6.2/net/ipv4/fib_rules.c.orig 2004-02-11 18:55:58.000000000 +0100
> > > +++ linux-2.6.2/net/ipv4/fib_rules.c 2004-02-11 19:03:08.319215408 +0100
> > > @@ -438,7 +438,7 @@
...
> > > - skb_put(skb, b - skb->tail);
> > > + skb_trim(skb, b - skb->data);
> --- 1.6/net/decnet/dn_rules.c Fri May 9 01:46:11 2003
> +++ edited/net/decnet/dn_rules.c Thu Feb 12 03:52:42 2004
> @@ -381,7 +381,7 @@
...
> - skb_put(skb, b - skb->tail);
> + skb_trim(skb, b - skb->data);

Both fixes applied, thanks guys.

I was tempted to make skb_put()'s second argument signed, but I'm in no mood
to audit the entire tree for that :-)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/