diff options
author | Chris Wilson <[email protected]> | 2017-11-17 16:29:45 +0000 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2017-11-17 18:20:36 +0000 |
commit | 223c73a3667a5afe33245d423f867f4c4b1b39ea (patch) | |
tree | 1cfd2995c8b38bd72dc90fc785ca9ff90ca64ff8 /scripts/gdb/linux/lists.py | |
parent | 0cfecb7c4b9b45ed1776162e132b43f92564f3f4 (diff) |
drm/i915/selftests: Report ENOMEM clearly for an allocation failure
If we can not run the drunk_hole test because we couldn't allocate the
memory for the permutation array (even after we tried trimming the
size), report a clear ENOMEM. Similary, if we are asked to operate on a
hole too small for ourselves, make it skip quietly.
v2: Avoid malloc(0) since that returns ZERO_SIZE_PTR not NULL.
v3: Fixup similar construction for lowlevel_hole
v4: Use u64 >> 1 to avoid 64b div.
Signed-off-by: Chris Wilson <[email protected]>
Cc: Matthew Auld <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions