linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] PM / Qos: Fix a free error in the dev_pm_qos_constraints_destroy()
@ 2012-11-01 10:47 Lan Tianyu
  2012-11-01 10:47 ` [PATCH 2/2] PM / Qos: Add notifier for pm qos flags Lan Tianyu
  2012-11-01 14:27 ` [PATCH 1/2] PM / Qos: Fix a free error in the dev_pm_qos_constraints_destroy() Rafael J. Wysocki
  0 siblings, 2 replies; 5+ messages in thread
From: Lan Tianyu @ 2012-11-01 10:47 UTC (permalink / raw)
  To: rjw, stern; +Cc: Lan Tianyu, linux-pm, linux-acpi

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>
---
 drivers/base/power/qos.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/power/qos.c b/drivers/base/power/qos.c
index 3a7687a..31d3f48 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);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-01 23:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-01 10:47 [PATCH 1/2] PM / Qos: Fix a free error in the dev_pm_qos_constraints_destroy() Lan Tianyu
2012-11-01 10:47 ` [PATCH 2/2] PM / Qos: Add notifier for pm qos flags Lan Tianyu
2012-11-01 14:26   ` Rafael J. Wysocki
2012-11-01 23:21     ` [PATCH] PM / QoS: Document request manipulation requirement for flags Rafael J. Wysocki
2012-11-01 14:27 ` [PATCH 1/2] PM / Qos: Fix a free error in the dev_pm_qos_constraints_destroy() Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).