]> git.baikalelectronics.ru Git - kernel.git/commit
vmwgfx: Fix assignment in vmw_framebuffer_create_handle
authorRyan Mallon <rmallon@gmail.com>
Fri, 27 Jan 2012 21:51:40 +0000 (08:51 +1100)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Jan 2012 09:32:39 +0000 (09:32 +0000)
commit363ba5636bc0e7397a6d96637e4b0358e6b4558b
tree0c5728cdd5ad4bcc8fb770a78d1521f1113f2d8a
parentcec6ba72b379bc4ffdab0ad42a00c0f200cd0d2b
vmwgfx: Fix assignment in vmw_framebuffer_create_handle

The assignment of handle in vmw_framebuffer_create_handle doesn't actually do anything useful and is incorrectly assigning an integer value to a pointer argument. It appears that this is a typo and should be dereferencing handle rather than assigning to it directly. This fixes a bug where an undefined handle value is potentially returned to user-space.

Signed-off-by: Ryan Mallon <rmallon@gmail.com>
Reviewed-by: Jakob Bornecrantz<jakob@vmware.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c