mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
Merge "devfreq: memlat: correct null pointer derference"
This commit is contained in:
commit
1564028080
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue