Skip to content

Commit

Permalink
PM / QoS: Fix a free error in the dev_pm_qos_constraints_destroy()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lan,Tianyu authored and Rafael J. Wysocki committed Nov 1, 2012
1 parent f965287 commit 9eaee2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/power/qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9eaee2c

Please sign in to comment.