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 04:52:14 +0000 (21:52 -0700)
commita741acc0124c0d20941a86edb475329eb47e0aee
treed2bc681181e9f1c78b41a8bfb5f35b1eadf53ac9
parente766686f8ac76d5b262baf7101f31f3b50c4803d
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