PM / devfreq: Fix incorrect type issue.
authorXiaolong Ye <yexl@marvell.com>
Fri, 11 Sep 2015 03:05:23 +0000 (11:05 +0800)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 08:04:07 +0000 (09:04 +0100)
commit6e5ae963b52851a86c038993d167df2a946290cf
tree550fc1117c945444f5537dc32928760627330d20
parent01c2288236820005b4f5c7c57609e2e087c98a55
PM / devfreq: Fix incorrect type issue.

commit 5f25f066f75a67835abb5e400471a27abd09395b 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: Willy Tarreau <w@1wt.eu>
drivers/devfreq/devfreq.c