Re: [PATCH RESEND] thermal: power_allocator: req_range multiplication should be a 64 bit type
From: Javi Merino <hidden>
Date: 2016-01-13 16:10:28
From: Javi Merino <hidden>
Date: 2016-01-13 16:10:28
On Sat, Dec 19, 2015 at 01:49:58PM +0000, Javi Merino wrote:
Eduardo, Rui, On Tue, Dec 01, 2015 at 03:15:23PM +0000, Javi Merino wrote:quoted
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 <redacted> Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Javi Merino <redacted> --- drivers/thermal/power_allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Any comments on this? If not, can it be merged?
If there are no objections, can this be merged? Thanks, Javi