diff options
author | Ira W. Snyder <iws@ovro.caltech.edu> | 2009-01-26 21:00:33 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-26 21:00:33 -0800 |
commit | 8527bec548e01a29c6d1928d20d6d3be71861482 (patch) | |
tree | f5ec2235719ca1fe58431a35d3010f7cfa9ade5b /net | |
parent | 5376071069ec8a7e6a8112beab16fc24f5139475 (diff) | |
download | op-kernel-dev-8527bec548e01a29c6d1928d20d6d3be71861482.zip op-kernel-dev-8527bec548e01a29c6d1928d20d6d3be71861482.tar.gz |
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 <iws@ovro.caltech.edu>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions