diff options
author | 2020-06-22 15:45:33 +0200 | |
---|---|---|
committer | 2020-06-23 15:57:30 +0200 | |
commit | c9bb9d6685c0e8318c3a70fcdea319c84c94e5af (patch) | |
tree | 1f3efd85133758fd609bda38a64211d0e89657ba /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/mm: cleanup and improve next_hole_*_addr() (diff) | |
download | wireguard-linux-c9bb9d6685c0e8318c3a70fcdea319c84c94e5af.tar.xz wireguard-linux-c9bb9d6685c0e8318c3a70fcdea319c84c94e5af.zip |
drm/mm/selftests: fix wrong return type casting
Function prepare_igt_frag() and get_insert_time() were casting
signed value to unsigned value before returning error.
So error check in igt_frag() would not work with unsigned
return value from get_insert_time() compared against negative
value.
Addresses-Coverity: ("Unsigned compared against 0, no effect")
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reported-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/370636/
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions