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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user