]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a7eb0552cc1a0d8a11b35dbd0661e97ff660e65
tree3b25074a3f4cbb88413f8b5fde910453e9753658
parentd4b13f86c8e56cfde82698e82d64e36011314536
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