huang...@chinatelecom.cn writes:

> From: Hyman Huang(黄勇) <huang...@chinatelecom.cn>
>
> overity points out a overflow problem when computing MB,

Coverity

> dirty_ring_size and TARGET_PAGE_SIZE are both 32 bits,
> multiplication will be done as a 32-bit operation, which
> could overflow. Simplify the formula.
>
> Meanwhile, fix spelling mistake of variable name.
>
> Reported-by: Peter Maydell <peter.mayd...@linaro.org>
> Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
> Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
> Signed-off-by: Hyman Huang(黄勇) <huang...@chinatelecom.cn>


Reply via email to