linux/tools/testing/selftests/vDSO
Colin Ian King 375b9ff53c kselftest: vDSO: Fix accumulation of uninitialized ret when CLOCK_REALTIME is undefined
In the unlikely case that CLOCK_REALTIME is not defined, variable ret is
not initialized and further accumulation of return values to ret can leave
ret in an undefined state. Fix this by initialized ret to zero and changing
the assignment of ret to an accumulation for the CLOCK_REALTIME case.

Fixes: 03f55c7952 ("kselftest: Extend vDSO selftest to clock_getres")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-06-12 16:39:10 -06:00
..
.gitignore selftests/vDSO: add additional binaries to .gitignore 2021-01-04 09:25:44 -07:00
Makefile kselftest: Move test_vdso to the vDSO test suite 2020-10-27 17:58:33 -06:00
parse_vdso.c
parse_vdso.h
vdso_config.h nds32: Remove the architecture 2022-03-07 13:54:59 +01:00
vdso_standalone_test_x86.c
vdso_test_abi.c kselftest: Fix vdso_test_abi return status 2022-01-31 10:35:14 -07:00
vdso_test_clock_getres.c kselftest: vDSO: Fix accumulation of uninitialized ret when CLOCK_REALTIME is undefined 2023-06-12 16:39:10 -06:00
vdso_test_correctness.c selftests/vDSO: fix array_size.cocci warning 2022-04-04 13:27:11 -06:00
vdso_test_getcpu.c selftests/vDSO: Add riscv getcpu & gettimeofday test 2022-11-03 03:28:01 -06:00
vdso_test_gettimeofday.c selftests/vDSO: Add riscv getcpu & gettimeofday test 2022-11-03 03:28:01 -06:00