Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d85a15f4 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "pstore: Add buffer start check during init"

parents 71af17fb 87d5e4a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -507,7 +507,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;
		}