[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090128212526.GA22141@gondor.apana.org.au>
Date: Thu, 29 Jan 2009 08:25:26 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Shyam_Iyer@...l.com
Cc: michaelc@...wisc.edu, davem@...emloft.net,
jesse.brandeburg@...el.com, netdev@...r.kernel.org,
olaf.kirch@...cle.com, tgraf@...g.ch, kkeil@...e.de
Subject: Re: [PANIC] lro + iscsi or lro + skb text search causes panic
On Wed, Jan 28, 2009 at 05:47:57PM +0530, Shyam_Iyer@...l.com wrote:
>
> --- skbuff.c.orig 2009-01-29 01:12:03.000000000 +0530
> +++ skbuff.c 2009-01-29 01:34:57.000000000 +0530
> @@ -2039,15 +2039,15 @@
> st->frag_data = NULL;
> }
>
> - if (st->cur_skb->next) {
> - st->cur_skb = st->cur_skb->next;
> - st->frag_idx = 0;
> - goto next_skb;
> - } else if (st->root_skb == st->cur_skb &&
> + if (st->root_skb == st->cur_skb &&
> skb_shinfo(st->root_skb)->frag_list) {
> st->cur_skb = skb_shinfo(st->root_skb)->frag_list;
> st->frag_idx=0;
> goto next_skb;
> + } else if (st->cur_skb->next) {
> + st->cur_skb = st->cur_skb->next;
> + st->frag_idx = 0;
> + goto next_skb;
> }
>
> return 0;
Good catch!
Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
Thanks,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists