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>
This commit is contained in:
parent
201e4aca5a
commit
25b63da647
1 changed files with 1 additions and 0 deletions
|
@ -406,6 +406,7 @@ static int __init persistent_ram_post_init(struct persistent_ram_zone *prz, bool
|
||||||
" size %zu, start %zu\n",
|
" size %zu, start %zu\n",
|
||||||
buffer_size(prz), buffer_start(prz));
|
buffer_size(prz), buffer_start(prz));
|
||||||
persistent_ram_save_old(prz);
|
persistent_ram_save_old(prz);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pr_info("persistent_ram: no valid data in buffer"
|
pr_info("persistent_ram: no valid data in buffer"
|
||||||
|
|
Loading…
Reference in a new issue