Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97d76b65 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: soc: qcom: rimps_memlat: add NULL check for vendor ops"

parents 1b40281e d1040cce
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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];