]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Fix return in assert_mmap_offset()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Feb 2020 14:14:13 +0000 (17:14 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Feb 2020 21:13:16 +0000 (21:13 +0000)
commit40f271bbe9895f5895d6dcf2dbef5a2e2c591be9
tree28204d2f7a99133184d72f14139c419ec8afacac
parenta204847bcf51771c4fc91aa88a546e03218ac3b5
drm/i915/selftests: Fix return in assert_mmap_offset()

The assert_mmap_offset() returns type bool so if we return an error
pointer that is "return true;" or success.  If we have an error, then
we should return false.

Fixes: 7e8f1f0406e0 ("drm/i915: Test exhaustion of the mmap space")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200228141413.qfjf4abr323drlo4@kili.mountain
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c