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

2014-02-26 Thread Saravana Kannan
On 02/25/2014 09:12 PM, 함명주 wrote: >> 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

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

2014-02-26 Thread Saravana Kannan
On 02/25/2014 09:12 PM, 함명주 wrote: 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

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

2014-02-25 Thread 함명주
> 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

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

2014-02-25 Thread Saravana Kannan
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

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

2014-02-25 Thread Saravana Kannan
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

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

2014-02-25 Thread 함명주
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