pstore/ram: don't register boot_log to minidump when it is off

Fixes: 08e5018b7c ("fs: pstore: register buffers to minidump")
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I7af139c4915504650acf0c5858f96be54f76639a
This commit is contained in:
Huibin Hong
2023-10-25 09:03:23 +00:00
committed by Tao Huang
parent 1ff00f4eb5
commit 010f6eb3a4
+2
View File
@@ -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];