OSDN Git Service

drm/i915/selftests: Allow random array allocation to fail
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 23 Dec 2017 11:04:07 +0000 (11:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Jan 2018 15:30:40 +0000 (15:30 +0000)
commit9861b6682804a9db82600e0adf592bfa6deec377
tree9f1867154943518e64cb24869d6c9d8db5eb553f
parent85a9c0bc0888be8b140de06ae6486208bc1424f9
drm/i915/selftests: Allow random array allocation to fail

In the selftests, we don't want to force an oom and would rather
ENOMEM be reported. In this case, we would rather the allocation for the
random array to fail.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171223110407.21402-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_random.c