diff --git a/fs/pstore/ram_core.c b/fs/pstore/ram_core.c index 73aed51447b9a..079f1a15cab0d 100644 --- a/fs/pstore/ram_core.c +++ b/fs/pstore/ram_core.c @@ -506,7 +506,7 @@ static int persistent_ram_post_init(struct persistent_ram_zone *prz, u32 sig, sig ^= PERSISTENT_RAM_SIG; if (prz->buffer->sig == sig) { - if (buffer_size(prz) == 0) { + if (buffer_size(prz) == 0 && buffer_start(prz) == 0) { pr_debug("found existing empty buffer\n"); return 0; }