Thread (3 messages) 3 messages, 1 author, 2016-01-13

Re: [PATCH RESEND] thermal: power_allocator: req_range multiplication should be a 64 bit type

From: Javi Merino <hidden>
Date: 2015-12-19 13:50:02

Eduardo, Rui,

On Tue, Dec 01, 2015 at 03:15:23PM +0000, Javi Merino wrote:
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?

Thanks,
Javi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help