Re: [PATCH] virtio_net: use correct accessors for scatterlists

From: Rusty Russell
Date: Wed Jan 28 2009 - 05:59:42 EST


On Tuesday 27 January 2009 15:30:55 David Miller wrote:
> From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
> Date: Tue, 27 Jan 2009 15:21:19 +1030
>
> > On Saturday 24 January 2009 10:40:53 Ira Snyder wrote:
> > > Without this fix, virtio_net makes incorrect usage of scatterlists. It sets
> > > the end of the scatterlist chain after the first element, despite the fact
> > > that more entries come after it.
> > >
> > > If you try to run dma_map_sg() on one of the scatterlists given to you by
> > > add_buf(), you will get a null pointer oops.
> > >
> > > Signed-off-by: Ira W. Snyder <iws@xxxxxxxxxxxxxxxx>
> >
> > Thanks, this should go in 2.6.29. Dave?
>
> Applied, should I queue it up for -stable too Rusty?

I don't think so. It really is defined as an sg array, not an sg chain. I'm happy to apply a little patch to make Ira's ongoing development easier, but no reason to panic about it.

Thanks,
Rusty.
--
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/