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)
commit6f7d79849a00bba82d3139ff91ff2aaabd12841e
treea211e8c8361e64c638f9bcc1131739a79585af7a
parent4e3d9cb0134fea035e6eb1707e5e7d8aaffa186d
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