commit | 0578be680c6623ad6515b60a0b41ec70ebc1f204 | [log] [tgz] |
---|---|---|
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | Tue Apr 07 15:56:07 2015 +0200 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Tue Apr 07 18:11:25 2015 +0200 |
tree | 3b25074a3f4cbb88413f8b5fde910453e9753658 | |
parent | be26a66de5f5722388966a62d772df832818bcb9 [diff] |
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>