aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/vio.h
diff options
context:
space:
mode:
authorDwight Engen <dwight.engen@oracle.com>2014-09-19 09:42:53 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-30 14:37:35 -0700
commit5eed69ffd248c9f68f56c710caf07db134aef28b (patch)
tree6c5308b2f58cc6ceade6a149cf988966d61f956b /arch/sparc/include/asm/vio.h
parentsunvdc: compute vdisk geometry from capacity (diff)
downloadlinux-dev-5eed69ffd248c9f68f56c710caf07db134aef28b.tar.xz
linux-dev-5eed69ffd248c9f68f56c710caf07db134aef28b.zip
sunvdc: limit each sg segment to a page
ldc_map_sg() could fail its check that the number of pages referred to by the sg scatterlist was <= the number of cookies. This fixes the issue by doing a similar thing to the xen-blkfront driver, ensuring that the scatterlist will only ever contain a segment count <= port->ring_cookies, and each segment will be page aligned, and <= page size. This ensures that the scatterlist is always mappable. Orabug: 19347817 OraBZ: 15945 Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/vio.h')
0 files changed, 0 insertions, 0 deletions