OSDN Git Service

drm/i915/userptr: Fix error handling of mutex_lock_killable()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Jan 2019 22:11:18 +0000 (22:11 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 Jan 2019 08:31:41 +0000 (08:31 +0000)
commit9e267d286af5c5a67995128df40ca3d1f93277a6
tree031eb1da01d378e5f3bfa8048a2d7e690228f288
parent0212bdef5a4de344a179f9c267899df5bb268ca7
drm/i915/userptr: Fix error handling of mutex_lock_killable()

mutex_lock_killable() returns -EINTR on failure, not the anticipate bool
return like trylock. (Oh no, not again.)

Fixes: 484d9a844d0d ("drm/i915/userptr: Avoid struct_mutex recursion for mmu_invalidate_range_start")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190115221118.13304-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/i915_gem_userptr.c