summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/mtk_thermal.c
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2016-04-06 19:30:18 +0100
committerEduardo Valentin <edubezval@gmail.com>2016-04-20 16:22:45 -0700
commitf9d038144a171d42e057143b247ff7a12a5b06f5 (patch)
treef369a61f4a975566158427a691cc509e6d3e9cb2 /drivers/thermal/mtk_thermal.c
parentc0ff8aaae369559fbef0e9f2606a9ae92db14f2f (diff)
downloadop-kernel-dev-f9d038144a171d42e057143b247ff7a12a5b06f5.zip
op-kernel-dev-f9d038144a171d42e057143b247ff7a12a5b06f5.tar.gz
thermal: power_allocator: req_range multiplication should be a 64 bit type
req_range is declared as a u64 to cope with overflows in the multiplication of two u32. As both req_power and power_range are u32, we need to make sure the multiplication is done with u64 types. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Javi Merino <javi.merino@arm.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/mtk_thermal.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud