]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02386465cb8cff2ea1052e90f02469bd62f0bddb
tree9f1867154943518e64cb24869d6c9d8db5eb553f
parent5f905253bae7e399947c63d30fb37e9b1bbc2277
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