[PATCH 2/2] [RFC] time: Limit time values that would overflow ktime_t

2012-07-31 Thread John Stultz
We could observe unexpected behavior if the time is set to a value large enough to overflow a 64bit ktime_t (which is something larger then the year 2264). So check timekeeping inputs to make sure we don't set the time to a value that overflows ktime_t. Note: This does not protect from setting

[PATCH 2/2] [RFC] time: Limit time values that would overflow ktime_t

2012-07-31 Thread John Stultz
We could observe unexpected behavior if the time is set to a value large enough to overflow a 64bit ktime_t (which is something larger then the year 2264). So check timekeeping inputs to make sure we don't set the time to a value that overflows ktime_t. Note: This does not protect from setting