[PATCH linux dev-4.10 v3] hwmon (occ): Fix integer overflow in multiplication
joel at jms.id.au
Wed Jan 17 04:45:54 AEDT 2018
On Tue, Dec 19, 2017 at 1:56 PM, Eddie James <eajames at linux.vnet.ibm.com> wrote:
> Power values were overflowing INT_MAX when being converted to
> microwatts, even though the storage was sufficiently large (unsigned 64
> bit). Change literals to unsigned long long. Also change tmep storage to u32
> to avoid overflows at 65000 millidegrees.
> Signed-off-by: Edward A. James <eajames at us.ibm.com>
Applied to dev-4.10.
More information about the openbmc