summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-07-13 17:25:51 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2020-07-13 17:45:32 +0300
commitd2921096e707bdde92bc635cd89ec1fe85a9faee (patch)
tree030ddeca2a5af763c971d564a590522e7a1ffccb /tools/testing/selftests/bpf/prog_tests/autoload.c
parent4fe6abb8f51355224808ab02a9febf65d184c40b (diff)
downloadlinux-d2921096e707bdde92bc635cd89ec1fe85a9faee.tar.xz
drm/i915/selftest: fix an error return path where err is not being set
There is an error condition where err is not being set and an uninitialized garbage value in err is being returned. Fix this by assigning err to an appropriate error return value before taking the error exit path. Addresses-Coverity: ("Uninitialized scalar value") Fixes: ed2690a9ca89 ("drm/i915/selftest: Check that GPR are restored across noa_wait") 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/20200713142551.423649-1-colin.king@canonical.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions