aboutsummaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-02-10 13:16:29 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-13 11:51:21 -0800
commitcd34de10471a5ddad397739fae33555d47e53769 (patch)
tree99e2e27194d72d5767093568a956751b835fdf43 /COPYING
parentcf85cc93b24891b7e57b1d9939742b5774570b19 (diff)
3.4.y: timekeeping: fix 32-bit overflow in get_monotonic_boottime
fixed upstream in v3.6 by ec145babe754f9ea1079034a108104b6001e001c get_monotonic_boottime adds three nanonsecond values stored in longs, followed by an s64. If the long values are all close to 1e9 the first three additions can overflow and become negative when added to the s64. Cast the first value to s64 so that all additions are 64 bit. Signed-off-by: Colin Cross <ccross@android.com> [jstultz: Fished this out of the AOSP commong.git tree. This was fixed upstream in v3.6 by ec145babe754f9ea1079034a108104b6001e001c] Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions