]> git.baikalelectronics.ru Git - kernel.git/commit
time: Make sure tz_minuteswest is set to a valid value when setting time
authorSasha Levin <sasha.levin@oracle.com>
Tue, 2 Dec 2014 04:04:06 +0000 (23:04 -0500)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 22 May 2015 16:12:22 +0000 (09:12 -0700)
commit585bafa4ebe5102bc7afa7f3939da05c17ecb414
treea211e8c8361e64c638f9bcc1131739a79585af7a
parent462cbffe10b07c5c917f4aca1b6a2b146e95ec45
time: Make sure tz_minuteswest is set to a valid value when setting time

Invalid values may overflow later, leading to undefined behaviour when
multiplied by 60 to get the amount of seconds.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/time.c