]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Fix an uninitialized fence handle value
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 31 Jan 2019 09:52:21 +0000 (10:52 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 5 Feb 2019 12:51:57 +0000 (13:51 +0100)
commite9befdf90193b2f2ff738beeb16ea59f5cdd30d5
tree95511b7c036fda53a2a54c069805e69f697469f5
parent325c0442a94a5596e20bb461f85c1d29d01342b9
drm/vmwgfx: Fix an uninitialized fence handle value

if vmw_execbuf_fence_commands() fails, The handle value will be
uninitialized and a bogus fence handle might be copied to user-space.

Cc: <stable@vger.kernel.org>
Fixes: c6ec6f54431c: ("drm/vmwgfx: Use new validation interface for the modesetting code v2")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com> #v1
Reviewed-by: Sinclair Yeh <syeh@vmware.com> #v1
Reviewed-by: Deepak Rawat <drawat@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c