Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49f18a6b authored by Ashay Jaiswal's avatar Ashay Jaiswal Committed by Anirudh Ghayal
Browse files

qpnp-fg: fix integer overflow



There is a possibility of integer overflow during capacity
learning calculation. Fix this by storing intermediate results
in 64 bit variable.

CRs-Fixed: 2070510
Change-Id: I70b6ef0796be010129f8d8a7380f685bb76daf7d
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent 38afda62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment