Re: [PATCH 3.12 89/91] PM / devfreq: Fix incorrect type issue.

From: Ben Hutchings
Date: Fri Nov 11 2016 - 22:02:56 EST


On Tue, 2016-01-05 at 18:47 +0100, Jiri Slaby wrote:
> From: Xiaolong Ye <yexl@xxxxxxxxxxx>
>
> 3.12-stable review patch.ÂÂIf anyone has any objections, please let
> me know.
>
> ===============
>
> 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@xxxxxxxxxxx>
> Signed-off-by: Kevin Liu <kliu5@xxxxxxxxxxx>
> Signed-off-by: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>
> Cc: Oliver Neukum <ONeukum@xxxxxxxx>
> Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>
[...]

This is still needed in longterm branches 3.10 - 4.1 inclusive. I just
queued it up for 3.16.

Ben.

--
Ben Hutchings
If you seem to know what you are doing, you'll be given more to do.

Attachment: signature.asc
Description: This is a digitally signed message part