]> 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)
commit4b9a15e6584c90d42e1d2c13c70caa3f3ea80fa0
treea211e8c8361e64c638f9bcc1131739a79585af7a
parent0175decc04265737bb8e3040cc4f549b310cc288
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