aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2011-06-29 13:54:42 -0700
committerColin Cross <ccross@android.com>2011-06-29 13:54:42 -0700
commite55d4fa96762fd767a3b6d842c904e994db6bb2e (patch)
treec74157e01cb128cb97f106a50cfadc4c8b872c41 /kernel/power
parente32c14667e4fe9f16ac9b918d15d29abd2315a55 (diff)
parentb0af8dfdd67699e25083478c63eedef2e72ebd85 (diff)
downloadkernel_samsung_espresso10-e55d4fa96762fd767a3b6d842c904e994db6bb2e.zip
kernel_samsung_espresso10-e55d4fa96762fd767a3b6d842c904e994db6bb2e.tar.gz
kernel_samsung_espresso10-e55d4fa96762fd767a3b6d842c904e994db6bb2e.tar.bz2
Merge commit 'v3.0-rc5' into android-3.0
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/user.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/power/user.c b/kernel/power/user.c
index 7d02d33..42ddbc6 100644
--- a/kernel/power/user.c
+++ b/kernel/power/user.c
@@ -113,8 +113,10 @@ static int snapshot_open(struct inode *inode, struct file *filp)
if (error)
pm_notifier_call_chain(PM_POST_RESTORE);
}
- if (error)
+ if (error) {
+ free_basic_memory_bitmaps();
atomic_inc(&snapshot_device_available);
+ }
data->frozen = 0;
data->ready = 0;
data->platform_support = 0;