]> 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)
commitb1488123b405fb41b26d3af6d1735fec1905b70c
tree3b25074a3f4cbb88413f8b5fde910453e9753658
parent6d3c2794b173a8b453b3be242f3811d515523e4a
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