Merge "devfreq: memlat: correct null pointer derference"

This commit is contained in:
qctecmdr 2020-05-12 10:31:40 -07:00 • committed by Gerrit - the friendly Code Review server
commit 1564028080

View file

@ -366,6 +366,9 @@ static int memlat_hp_restart_events(unsigned int cpu, bool cpu_up)
unsigned int idx;
struct event_data *common_evs;
if (!attr)
return -ENOMEM;
if (!cpu_grp)
goto exit;