drm/vmwgfx: Fix regression caused by "drm/ttm: make ttm reservation calls behave...
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 30 Jan 2014 09:58:19 +0000 (10:58 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 Feb 2014 07:36:11 +0000 (08:36 +0100)
commitcf5e3413337309050c05e13dcebe85b7194a21e5
tree154bdf3353d6947fedb07449a6e1a259eb221e46
parent76c7d18bcddc9794f898ebdee44a3160c636da9c
drm/vmwgfx: Fix regression caused by "drm/ttm: make ttm reservation calls behave like reservation calls"

The call to ttm_eu_backoff_reservation() as part of an error path would cause
a lock imbalance if the reservation ticket was not initialized. This error is
easily triggered from user-space by submitting a bogus command stream.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Cc: stable@vger.kernel.org
Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c