Skip to content
Commit f0dbe81f authored by Miroslav Lichvar's avatar Miroslav Lichvar Committed by John Stultz
Browse files

posix-timers: Fix clock_adjtime to always return timex data on success



The clock_adj call returns the clock state on success, which may be a
non-zero value (e.g. TIME_INS), but the modified timex data is copied
back to the user only when zero value (TIME_OK) was returned. Fix the
condition to copy the data also with positive return values.

Signed-off-by: default avatarMiroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 2353b47b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment