Commit a6c99daa authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files
Pull an operating performance points (OPP) framework fix for 5.8-rc6 from
Viresh Kumar:

"This fixes freeing of the OPP entries for the legacy OPP table type (v1)."

* 'opp/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm:
  opp: Increase parsed_static_opps in _of_add_opp_table_v1()
parents 11ba4688 6544abc5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -902,6 +902,10 @@ static int _of_add_opp_table_v1(struct device *dev, struct opp_table *opp_table)
		return -EINVAL;
	}

	mutex_lock(&opp_table->lock);
	opp_table->parsed_static_opps = 1;
	mutex_unlock(&opp_table->lock);

	val = prop->value;
	while (nr) {
		unsigned long freq = be32_to_cpup(val++) * 1000;