summaryrefslogtreecommitdiff
path: root/drivers/base/power
diff options
context:
space:
mode:
authorLan,Tianyu <tianyu.lan@intel.com>2012-11-02 01:45:30 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-02 01:45:30 +0400
commit9eaee2cdcf9ead20f234b15ed26f82a96a4fa8fb (patch)
tree3b6be1bc8707ae7401952587440a375ace270aed /drivers/base/power
parentf9652875dcd49d400b775aecc8e0bf76e405b70a (diff)
downloadlinux-9eaee2cdcf9ead20f234b15ed26f82a96a4fa8fb.tar.xz
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: Lan Tianyu <tianyu.lan@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power')
-rw-r--r--drivers/base/power/qos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/qos.c b/drivers/base/power/qos.c
index 3a7687ae5a4d..31d3f4842b9b 100644
--- a/drivers/base/power/qos.c
+++ b/drivers/base/power/qos.c
@@ -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);