time: Catch invalid timespec sleep values in __timekeeping_inject_sleeptime
authorJohn Stultz <john.stultz@linaro.org>
Thu, 2 Jun 2011 01:18:09 +0000 (18:18 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 21 Jun 2011 23:55:36 +0000 (16:55 -0700)
commitcb5de2f8d0306be38f9b377b8a5c56acca7dbc3d
tree9edd5bd1fd1e41be44026a37b2184200f6f90d50
parente08f6d4131ab964420f0bcabecc68d75fb49df79
time: Catch invalid timespec sleep values in __timekeeping_inject_sleeptime

Arve suggested making sure we catch possible negative sleep time
intervals that could be passed into timekeeping_inject_sleeptime.

CC: Arve Hjønnevåg <arve@android.com>
CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/timekeeping.c