Re: [PATCH] posix-timers: Fix clock_adjtime to return timex dataon success

From: John Stultz
Date: Thu Jan 10 2013 - 15:27:35 EST


On 01/10/2013 12:12 PM, Richard Cochran wrote:
On Thu, Jan 10, 2013 at 06:12:02PM +0100, Miroslav Lichvar wrote:
Copy the modified timex data back to the user also with positive return
values. This fixes reading of the CLOCK_REALTIME timex data when the
clock is in a non-zero state.

Signed-off-by: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
Acked-by: Richard Cochran <richardcochran@xxxxxxxxx>

(Adding John Stultz on CC)

Just to clarify (the commit message makes it pretty hard to understand exactly what's going wrong), this is to handle the case where clock_adj() returns a non-zero time_state value (such as TIME_INS) ?

thanks
-john

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/