From 010f6eb3a49d517f4f3eab94995b7921027b6d02 Mon Sep 17 00:00:00 2001 From: Huibin Hong Date: Wed, 25 Oct 2023 09:03:23 +0000 Subject: [PATCH] pstore/ram: don't register boot_log to minidump when it is off Fixes: 08e5018b7c7d ("fs: pstore: register buffers to minidump") Signed-off-by: Huibin Hong Change-Id: I7af139c4915504650acf0c5858f96be54f76639a --- fs/pstore/ram.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index d056bcc069c8..4db798dd9b53 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -799,10 +799,12 @@ static void ramoops_register_ram_zone_info_to_minidump(struct ramoops_context *c int i = 0; struct persistent_ram_zone *prz = NULL; +#ifdef CONFIG_PSTORE_BOOT_LOG for (i = 0; i < cxt->max_boot_log_cnt; i++) { prz = cxt->boot_przs[i]; _ramoops_register_ram_zone_info_to_minidump(prz); } +#endif for (i = 0; i < cxt->max_dump_cnt; i++) { prz = cxt->dprzs[i];