]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit725f74525615dcbb6e90db9a6136aa6ea735c4d0
treeeafb5b3d0e1d08759501e48ba135420acd968603
parent5e4cf43c6b516bbc56c08e0861fb46caa7babc26
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