drm: Fixup locking WARN_ON mistake around gem_object_free_unlocked
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 May 2016 12:10:44 +0000 (14:10 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 May 2016 13:24:32 +0000 (15:24 +0200)
commit6d3e7fddb39a4f0a47c8042df11554bb61d7a4aa
treec9e0f57d8bed6473a88de7d2d69902cef30cb188
parent1d657c58dd16ed8fad938f3662774de15d35ce0a
drm: Fixup locking WARN_ON mistake around gem_object_free_unlocked

Embarrassingly while fixing up the old paths for i915 I managed to
misplace a locking check for the new _unlocked paths. That's what I
get for not retesting on radeon.

Fixes: 9f0ba539d13a ("drm/gem: support BO freeing without dev->struct_mutex")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Alex Deucher <alexdeucher@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_gem.c