]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/vmwgfx: Fix user space handle equal to zero
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 7 May 2019 09:10:10 +0000 (11:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2019 07:16:16 +0000 (09:16 +0200)
commit7cb13911b67ad382bc57002ddc384d58022d092d
tree24c4d75b6d74b8d5d68545e22197f66436b0a864
parent37dfbf0ad37b897f15d90f8cecc5e0dc5c5bb0b2
drm/vmwgfx: Fix user space handle equal to zero

commit 8407f8a1d940fe28c4243ad4f0cb6a44dcee88f6 upstream.

User-space handles equal to zero are interpreted as uninitialized or
illegal by some drm systems (most notably kms). This means that a
dumb buffer or surface with a zero user-space handle can never be
used as a kms frame-buffer.

Cc: <stable@vger.kernel.org>
Fixes: c7eae62666ad ("drm/vmwgfx: Make the object handles idr-generated")
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/ttm_object.c