OSDN Git Service

hw/timer/exynos4210_mct: Avoid overflow in exynos4210_ltick_recalc_count
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:39 +0000 (16:09 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:39 +0000 (16:09 +0100)
commitc3a699be3c63f75b6ea5877080ea9b96b37524c4
tree87ec036eaca6e0a25e0c50b568b4849a25a144e7
parent2a41c92854385eb1ae677e79257e136886200ace
hw/timer/exynos4210_mct: Avoid overflow in exynos4210_ltick_recalc_count

Add casts to avoid potentially overflowing the multiplications
of 32 bit quantities in exynos4210_ltick_recalc_count().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
hw/timer/exynos4210_mct.c