From: Thomas Hellstrom Date: Tue, 15 Apr 2014 16:25:48 +0000 (+0200) Subject: drm/vmwgfx: Make sure user-space can't DMA across buffer object boundaries v2 X-Git-Tag: v3.2.60~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98077594d9f33566c0681c0944fdcaed3e113ad0;p=pandora-kernel.git drm/vmwgfx: Make sure user-space can't DMA across buffer object boundaries v2 commit cbd75e97a525e3819c02dc18bc2d67aa544c9e45 upstream. We already check that the buffer object we're accessing is registered with the file. Now also make sure that we can't DMA across buffer object boundaries. v2: Code commenting update. Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed