From: Dwight Engen Date: Fri, 19 Sep 2014 13:42:53 +0000 (-0400) Subject: sunvdc: limit each sg segment to a page X-Git-Tag: omap-for-v3.19/prcm-cleanup~113^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5eed69ffd248c9f68f56c710caf07db134aef28b;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed