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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 May 2014 20:20:32 +0000 (13:20 -0700)
commitf8df1b4619aaed7a9d45cd5b7a84b854d7f46e4b
treef370dfac014b8d5afb0596d514a66c447a3f6cca
parent900bbb9d90c65a8fa4efa9dca20f5c780e698bae
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 <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c