summaryrefslogtreecommitdiffstats
path: root/fs/pstore/ram_internal.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2022-10-11 13:01:11 -0700
committerKees Cook <keescook@chromium.org>2022-10-19 09:25:39 -0700
commit06b4e09aab6c1ae6b3991a729d2fcb31e358e7f3 (patch)
tree5b8a38369f5f92974adccae8b10dbb5fd10f8508 /fs/pstore/ram_internal.h
parent8bd4da0f0626ae9a82099d3d99cd6efd4355879b (diff)
downloadlinux-stable-06b4e09aab6c1ae6b3991a729d2fcb31e358e7f3.tar.gz
linux-stable-06b4e09aab6c1ae6b3991a729d2fcb31e358e7f3.tar.bz2
linux-stable-06b4e09aab6c1ae6b3991a729d2fcb31e358e7f3.zip
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
Diffstat (limited to 'fs/pstore/ram_internal.h')
-rw-r--r--fs/pstore/ram_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/ram_internal.h b/fs/pstore/ram_internal.h
index 440ee7a35e10..5f694698351f 100644
--- a/fs/pstore/ram_internal.h
+++ b/fs/pstore/ram_internal.h
@@ -82,7 +82,7 @@ struct persistent_ram_zone {
struct persistent_ram_zone *persistent_ram_new(phys_addr_t start, size_t size,
u32 sig, struct persistent_ram_ecc_info *ecc_info,
unsigned int memtype, u32 flags, char *label);
-void persistent_ram_free(struct persistent_ram_zone *prz);
+void persistent_ram_free(struct persistent_ram_zone **_prz);
void persistent_ram_zap(struct persistent_ram_zone *prz);
int persistent_ram_write(struct persistent_ram_zone *prz, const void *s,