diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-05-26 06:07:50 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-13 16:52:39 -0700 |
commit | 25b63da64708212985c06c7f8b089d356efdd9cf (patch) | |
tree | 72fdcfee27559b22ef692de8ddf3246f3fbc5988 /fs/pstore | |
parent | 201e4aca5aa179e6c69a4dcd36a3562e56b8d670 (diff) | |
download | linux-stable-25b63da64708212985c06c7f8b089d356efdd9cf.tar.gz linux-stable-25b63da64708212985c06c7f8b089d356efdd9cf.tar.bz2 linux-stable-25b63da64708212985c06c7f8b089d356efdd9cf.zip |
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.c | 1 |
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" |