pstore/ram: Set freed addresses to NULL
authorKees Cook <keescook@chromium.org>
Tue, 11 Oct 2022 20:01:11 +0000 (13:01 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 19 Oct 2022 16:25:39 +0000 (09:25 -0700)
commit06b4e09aab6c1ae6b3991a729d2fcb31e358e7f3
tree5b8a38369f5f92974adccae8b10dbb5fd10f8508
parent8bd4da0f0626ae9a82099d3d99cd6efd4355879b
pstore/ram: Set freed addresses to NULL

For good measure, set all the freed addresses to NULL when managing
przs.

Cc: Anton Vorontsov <anton@enomsg.org>
Cc: Colin Cross <ccross@android.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-and-tested-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Link: https://lore.kernel.org/r/20221011200112.731334-5-keescook@chromium.org
fs/pstore/ram.c
fs/pstore/ram_core.c
fs/pstore/ram_internal.h