From: Miroslav Lichvar Date: Fri, 11 Jan 2013 10:58:58 +0000 (+0100) Subject: posix-timers: Fix clock_adjtime to always return timex data on success X-Git-Tag: v3.9-rc1~170^2~5^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0dbe81f0e7c39783ad25d9084bbcda131508993;p=pandora-kernel.git 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: Miroslav Lichvar Signed-off-by: John Stultz --- Reading git-diff-tree failed