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

Commit 9eaee2cd authored by Lan,Tianyu's avatar Lan,Tianyu Committed by Rafael J. Wysocki
Browse files

PM / QoS: Fix a free error in the dev_pm_qos_constraints_destroy()



Free a wrong point to struct dev_pm_qos->latency which suppose to
be the point to struct dev_pm_qos. The patch is to fix the issue.

Signed-off-by: default avatarLan Tianyu <tianyu.lan@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent f9652875
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -253,7 +253,7 @@ void dev_pm_qos_constraints_destroy(struct device *dev)
	spin_unlock_irq(&dev->power.lock);

	kfree(c->notifiers);
	kfree(c);
	kfree(qos);

 out:
	mutex_unlock(&dev_pm_qos_mtx);