Skip to content
Commit 26d204af authored by Pallipadi, Venkatesh's avatar Pallipadi, Venkatesh Committed by Dave Jones
Browse files

[CPUFREQ] Fix NULL pointer dereference regression in conservative governor

Commit ee88415c


introduced this regression when it removed enable bit in cpu_dbs_info_s.
That added a possibility of dbs_cpufreq_notifier getting called for a
CPU that is not yet managed by conservative governor. That will happen
as the transition notifier is set as soon as one CPU switches to
conservative governor and other CPUs can get a NULL pointer dereference
without the enable bit check. Add the enable bit back again.

Reported-by: default avatarLermytte Christophe <Christophe.Lermytte@thomson.net>
Signed-off-by: default avatarVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent a33a052f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment