diff options
author | Sasha Levin <levinsasha928@gmail.com> | 2012-03-15 12:36:14 -0400 |
---|---|---|
committer | Luis Henriques <luis.henriques@canonical.com> | 2012-04-05 11:17:21 -0400 |
commit | 65fe18ee7b4a313630a32ac7d121703c63efb634 (patch) | |
tree | 07a97e4c37d1debf9b792667454e4453516ec791 /kernel/irq/manage.c | |
parent | ec9232f25aa54ab3e3de03c3a06f12efa44a860b (diff) |
ntp: Fix integer overflow when setting time
BugLink: http://bugs.launchpad.net/bugs/971808
commit a078c6d0e6288fad6d83fb6d5edd91ddb7b6ab33 upstream.
'long secs' is passed as divisor to div_s64, which accepts a 32bit
divisor. On 64bit machines that value is trimmed back from 8 bytes
back to 4, causing a divide by zero when the number is bigger than
(1 << 32) - 1 and all 32 lower bits are 0.
Use div64_long() instead.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Cc: johnstul@us.ibm.com
Link: http://lkml.kernel.org/r/1331829374-31543-2-git-send-email-levinsasha928@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/irq/manage.c')
0 files changed, 0 insertions, 0 deletions