linux/drivers/devfreq/devfreq.c
Xiaolong Ye 3465266e97 PM / devfreq: Fix incorrect type issue.
commit 5f25f066f7 upstream.

time_in_state in struct devfreq is defined as unsigned long, so
devm_kzalloc should use sizeof(unsigned long) as argument instead
of sizeof(unsigned int), otherwise it will cause unexpected result
in 64bit system.

Signed-off-by: Xiaolong Ye <yexl@marvell.com>
Signed-off-by: Kevin Liu <kliu5@marvell.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2016-11-20 01:17:39 +00:00

1222 lines
31 KiB