• Ryan Mallon's avatar
    vmwgfx: Fix assignment in vmw_framebuffer_create_handle · bf9c05d5
    Ryan Mallon authored
    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: default avatarRyan Mallon <rmallon@gmail.com>
    Reviewed-by: Jakob Bornecrantz<jakob@vmware.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    bf9c05d5
vmwgfx_kms.c 52.3 KB