]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/vmwgfx: Fix an incorrect lock check
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 8 Jan 2016 19:29:39 +0000 (20:29 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 13 Jan 2016 21:56:44 +0000 (07:56 +1000)
commitfb89ac5102ae2875d685c847e6b5dbc141622d43
treed8f3cb78505429997685fb3ea4fe3564c5a3dac6
parent38b1751913c0244056205e456afc07d01fb2ee58
drm/vmwgfx: Fix an incorrect lock check

With CONFIG_SMP=n and CONFIG_DEBUG_SPINLOCK=y the vmwgfx kernel module
would unconditionally throw a bug when checking for a held spinlock
in the command buffer code. Fix this by using a lockdep check.

Cc: <stable@vger.kernel.org>
Reported-and-tested-by: Tetsuo Handa <penguin-kernel@i-love-sakura.ne.jp>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c