Thread (2 messages) 2 messages, 1 author, 2014-02-25

[PATCH] PM / devfreq: Fix out of bounds access of transition table array

From: Saravana Kannan <hidden>
Date: 2014-02-25 21:13:59
Also in: linux-arm-msm, linux-pm, lkml

On 02/23/2014 11:15 PM, Saravana Kannan wrote:
The previous_freq value for a device could be an invalid frequency that
results in a error value being returned from devfreq_get_freq_level().
Check for an error value before using that to index into the transition
table.

Not doing this check will result in memory corruption when previous_freq is
not a valid frequency.

Signed-off-by: Saravana Kannan <redacted>
MyungJoo/Kyungmin,

Would either of you have some time to respond to this?

Thanks,
Saravana


-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help