drm/vmwgfx: Make sure user-space can't DMA across buffer object boundaries v2
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 15 Apr 2014 16:25:48 +0000 (18:25 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 24 Apr 2014 06:45:25 +0000 (08:45 +0200)
commitcbd75e97a525e3819c02dc18bc2d67aa544c9e45
treeeafb5b3d0e1d08759501e48ba135420acd968603
parentabaafc0af9f74f8e6212a3bf54fb907358b40ad7
drm/vmwgfx: Make sure user-space can't DMA across buffer object boundaries v2

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.

Cc: stable@vger.kernel.org
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c