diff options
author | Colin Cross <ccross@android.com> | 2012-09-26 14:21:22 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-09-26 15:04:01 -0700 |
commit | e9babf3472a0bb1bf31f8a3df173d683a86d2da3 (patch) | |
tree | 075c1b028276a2203a4018b0e363b429988f3edb /drivers/net/sfc | |
parent | d6a38f44cf29c8f145c18fa5ac7f41e9b530523e (diff) | |
download | kernel_samsung_crespo-e9babf3472a0bb1bf31f8a3df173d683a86d2da3.zip kernel_samsung_crespo-e9babf3472a0bb1bf31f8a3df173d683a86d2da3.tar.gz kernel_samsung_crespo-e9babf3472a0bb1bf31f8a3df173d683a86d2da3.tar.bz2 |
timekeeping: fix 32-bit overflow in get_monotonic_boottime
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.
Change-Id: Ic996d8b6fbef0b72f2d027b0d8ef5259b5c1a540
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'drivers/net/sfc')
0 files changed, 0 insertions, 0 deletions