summaryrefslogtreecommitdiff
path: root/fs/pstore
diff options
context:
space:
mode:
authorAnton Vorontsov <anton.vorontsov@linaro.org>2012-05-26 17:07:50 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-14 03:52:39 +0400
commit25b63da64708212985c06c7f8b089d356efdd9cf (patch)
tree72fdcfee27559b22ef692de8ddf3246f3fbc5988 /fs/pstore
parent201e4aca5aa179e6c69a4dcd36a3562e56b8d670 (diff)
downloadlinux-25b63da64708212985c06c7f8b089d356efdd9cf.tar.xz
pstore/ram_core: Do not reset restored zone's position and size
Otherwise, the files will survive just one reboot, and on a subsequent boot they will disappear. Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/pstore')
-rw-r--r--fs/pstore/ram_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/pstore/ram_core.c b/fs/pstore/ram_core.c
index 235513c46aaf..f6650d12c0c1 100644
--- a/fs/pstore/ram_core.c
+++ b/fs/pstore/ram_core.c
@@ -406,6 +406,7 @@ static int __init persistent_ram_post_init(struct persistent_ram_zone *prz, bool
" size %zu, start %zu\n",
buffer_size(prz), buffer_start(prz));
persistent_ram_save_old(prz);
+ return 0;
}
} else {
pr_info("persistent_ram: no valid data in buffer"