aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/ftrace
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-04-17 11:47:43 +0100
committerShuah Khan <skhan@linuxfoundation.org>2023-06-12 16:39:10 -0600
commit375b9ff53cb6f9c042817b75f2be0a650626dc4f (patch)
tree78fbdf0fcdb12748a648ca8f1d9f9e40aed6bb8e /tools/testing/selftests/ftrace
parentselftests: prctl: Fix spelling mistake "anonynous" -> "anonymous" (diff)
downloadwireguard-linux-375b9ff53cb6f9c042817b75f2be0a650626dc4f.tar.xz
wireguard-linux-375b9ff53cb6f9c042817b75f2be0a650626dc4f.zip
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: 03f55c7952c9 ("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>
Diffstat (limited to 'tools/testing/selftests/ftrace')
0 files changed, 0 insertions, 0 deletions