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)
committerArve Hjønnevåg <arve@android.com>
Wed, 23 Nov 2011 00:49:29 +0000 (16:49 -0800)
commitcf70c6a40073530c9e23fb373a541c09996429c7
treeed3729edc89111a87447373523f2a4cf2bc6d5e4
parent340ede367101d47c8fd69e83e5e6db9077f4caad
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