mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
Merge "drivers: soc: qcom: rimps_memlat: add NULL check for vendor ops"
This commit is contained in:
commit
97d76b6510
1 changed files with 6 additions and 0 deletions
|
|
@ -252,6 +252,9 @@ static ssize_t store_min_freq(struct kobject *kobj,
|
|||
unsigned int min_freq;
|
||||
unsigned int max_freq;
|
||||
|
||||
if (!ops)
|
||||
return -ENODEV;
|
||||
|
||||
if (mon->mon_type == L3_MEMLAT) {
|
||||
min_freq = l3_freqs[0];
|
||||
max_freq = l3_freqs[l3_pstates];
|
||||
|
|
@ -291,6 +294,9 @@ static ssize_t store_max_freq(struct kobject *kobj,
|
|||
unsigned int min_freq;
|
||||
unsigned int max_freq;
|
||||
|
||||
if (!ops)
|
||||
return -ENODEV;
|
||||
|
||||
if (mon->mon_type == L3_MEMLAT) {
|
||||
min_freq = l3_freqs[0];
|
||||
max_freq = l3_freqs[l3_pstates];
|
||||
|
|
|
|||
Loading…
Reference in a new issue