Commit 23d4f378 authored by Swetha Chikkaboraiah's avatar Swetha Chikkaboraiah
Browse files

cpufreq: ondemand:kernel NULL pointer dereference at dbs_check_cpu



Function dbs_check_cpu  calls __cpufreq_driver_getavg
With  policy as IN/OUT parameter.
There is possiblity of policy becoming NULL in
 __cpufreq_driver_getavg. Same policy is getting
accessed in the for loop which leads to NULL pointer dereference.
So NULL check is required for the policy

CRs-fixed: 582925
Change-Id: Ib8d8de8d66500430a5aa4c275937640e4f934aa8
Signed-off-by: default avatarSwetha Chikkaboraiah <schikk@codeaurora.org>
parent d83ce889
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment