]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/ttm: Fix error code in i915_ttm_eviction_valuable()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 22 Nov 2021 07:41:47 +0000 (10:41 +0300)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 22 Nov 2021 14:20:44 +0000 (14:20 +0000)
commitadcc5ac2626503283c45301ff14d93965e31ce2e
tree1a97a34d66b35a4e02b6241e9bf872b29647f554
parent0612d70b603feadced1a265a2f079fcd047b0340
drm/i915/ttm: Fix error code in i915_ttm_eviction_valuable()

This function returns a bool type so returning -EBUSY is equivalent to
returning true.  It should return false instead.

Fixes: d659f0ef280f ("drm/i915/ttm: add tt shmem backend")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211122061438.GA2492@kili
drivers/gpu/drm/i915/gem/i915_gem_ttm.c