diff options
author | 2020-08-06 15:57:28 +0100 | |
---|---|---|
committer | 2020-09-07 14:28:08 +0300 | |
commit | dd5e024956bf3035be380a3f022b77c06166112a (patch) | |
tree | acfc994baf0c6c99c633845e07f6d8738b2c8481 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915/gt: Hold context/request reference while breadcrumbs are active (diff) | |
download | wireguard-linux-dd5e024956bf3035be380a3f022b77c06166112a.tar.xz wireguard-linux-dd5e024956bf3035be380a3f022b77c06166112a.zip |
drm/i915/selftests: Prevent selecting 0 for our random width/align
When igt_random_offset() is a given a range of [0, PAGE_SIZE], it is
allowed to return 0. However, attempting to use a size of 0 for the
igt_lmem_write_cpu() byte poking, leads to call igt_random_offset() with
a range of [offset, offset + 0] and ask it to find a length of 4 within
it. This triggers the bug on that the requested length should fit within
the range!
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200806145728.16495-1-chris@chris-wilson.co.uk
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions