aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-10-02 18:03:54 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-12-07 10:44:17 +0000
commite70956a2498dc81d8f2522cba074f55ae910e13c (patch)
treea7f4fc45e0fe46882384fd046c01606f0ebcbadd /tools/perf/scripts/python
parentdrm/i915: remove WA_SET_FIELD_MASKED() (diff)
downloadlinux-e70956a2498dc81d8f2522cba074f55ae910e13c.tar.gz
linux-e70956a2498dc81d8f2522cba074f55ae910e13c.zip
drm/i915: fix size_t greater or equal to zero comparison
Currently the check that the unsigned size_t variable i is >= 0 is always true because the unsigned variable will never be negative, causing the loop to run forever. Fix this by changing the pre-decrement check to a zero check on i followed by a decrement of i. Addresses-Coverity: ("Unsigned compared against 0") Fixes: bfed6708d6c9 ("drm/i915: use vmap in shmem_pin_map") Signed-off-by: Colin Ian King <colin.king@canonical.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/20201002170354.94627-1-colin.king@canonical.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions