[via] Allow a little larger stride for SG DMA DownloadFromScreen.

main
Thomas Hellstrom 2008-03-16 11:39:18 +01:00
parent 7d3d15e67d
commit b81d7b3b8d
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ via_build_sg_info(struct drm_device *dev, drm_via_sg_info_t *vsg, drm_via_dmabli
* (Not a big limitation anyway.)
*/
if ((xfer->mem_stride - xfer->line_length) >= PAGE_SIZE) {
if ((xfer->mem_stride - xfer->line_length) > 2*PAGE_SIZE) {
DRM_ERROR("Too large system memory stride. Stride: %d, "
"Length: %d\n", xfer->mem_stride, xfer->line_length);
return -EINVAL;