From: Ira W. Snyder Date: Tue, 27 Jan 2009 05:00:33 +0000 (-0800) Subject: virtio_net: use correct accessors for scatterlists X-Git-Tag: v2.6.29-rc4~91^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8527bec548e01a29c6d1928d20d6d3be71861482;p=pandora-kernel.git virtio_net: use correct accessors for scatterlists 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 Signed-off-by: Rusty Russell Signed-off-by: David S. Miller --- Reading git-diff-tree failed