diff options
author | 2018-01-08 20:01:57 +0100 | |
---|---|---|
committer | 2018-01-14 20:50:59 +0100 | |
commit | a9445e47d897054876b8f43e46dc5a3eca2b844d (patch) | |
tree | d41dc9179e6aea71584e6276b7dcf261d4d1ed49 /tools/perf/scripts/python | |
parent | clocksource/drivers/stm32: Start the timer's counter sooner (diff) | |
download | linux-dev-a9445e47d897054876b8f43e46dc5a3eca2b844d.tar.xz linux-dev-a9445e47d897054876b8f43e46dc5a3eca2b844d.zip |
posix-cpu-timers: Make set_process_cpu_timer() more robust
Because the return value of cpu_timer_sample_group() is not checked,
compilers and static checkers can legitimately warn about a potential use
of the uninitialized variable 'now'. This is not a runtime issue as all call
sites hand in valid clock ids.
Also cpu_timer_sample_group() is invoked unconditionally even when the
result is not used because *oldval is NULL.
Make the invocation conditional and check the return value.
[ tglx: Massage changelog ]
Signed-off-by: Max R. P. Grossmann <m@max.pm>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: john.stultz@linaro.org
Link: https://lkml.kernel.org/r/20180108190157.10048-1-m@max.pm
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions