drm: Use kref_put_mutex in drm_gem_object_unreference_unlocked
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 7 Apr 2015 13:56:07 +0000 (15:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 7 Apr 2015 16:11:25 +0000 (18:11 +0200)
commit0578be680c6623ad6515b60a0b41ec70ebc1f204
tree3b25074a3f4cbb88413f8b5fde910453e9753658
parentbe26a66de5f5722388966a62d772df832818bcb9
drm: Use kref_put_mutex in drm_gem_object_unreference_unlocked

If kref_put_mutex returns true then the caller or the put function is responsible
for unlocking the mutex. The usual pattern assumes that the free
callback unlocks the mutex, but since that is shared with the locked
variant we need to explicitly unlock here.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
include/drm/drm_gem.h