summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-12-30 01:53:57 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-12-30 01:53:57 +0100
commitfbd22402164e687fd1be9a1372ee4f6b9373c860 (patch)
treefd86c8b2f8ed120a2229a1de7959f0d4e56c8008 /kernel/power
parentPM / Sleep: Add macro to define common late/early system PM callbacks (diff)
parentPM / sleep: Fix memory leak in pm_vt_switch_unregister(). (diff)
downloadlinux-fbd22402164e687fd1be9a1372ee4f6b9373c860.tar.xz
linux-fbd22402164e687fd1be9a1372ee4f6b9373c860.zip
Merge back earlier 'pm-sleep' material.
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/power/console.c b/kernel/power/console.c
index 463aa6736751..eacb8bd8cab4 100644
--- a/kernel/power/console.c
+++ b/kernel/power/console.c
@@ -81,6 +81,7 @@ void pm_vt_switch_unregister(struct device *dev)
list_for_each_entry(tmp, &pm_vt_switch_list, head) {
if (tmp->dev == dev) {
list_del(&tmp->head);
+ kfree(tmp);
break;
}
}