]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:42 +0000 (07:18 +0100)
commitff5756309c1274b9359b7745a53e906765edc99f
tree0cdb6e6c607124b9ae3e3207f7af16f7a7b40aa2
parentead15aa260227379828191d50e36c7c2ebae4832
drm/i915/selftests: Fix return in assert_mmap_offset()

commit f4aaa44e8b20f7e0d4ea68d3bca4968b6ae5aaff upstream.

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: 3d81d589d6e3 ("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
(cherry picked from commit efbf928824820f2738f41271934f6ec2c6ebd587)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c