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

Commit 93cce049 authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Greg Kroah-Hartman
Browse files

pstore/ram: Should zap persistent zone on unlink



Otherwise, unlinked file will reappear on the next boot.

Reported-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarAnton Vorontsov <anton.vorontsov@linaro.org>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fce39793
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -186,6 +186,7 @@ static int ramoops_pstore_erase(enum pstore_type_id type, u64 id,
		return -EINVAL;

	persistent_ram_free_old(cxt->przs[id]);
	persistent_ram_zap(cxt->przs[id]);

	return 0;
}