.. | .. |
---|
799 | 799 | int i = 0; |
---|
800 | 800 | struct persistent_ram_zone *prz = NULL; |
---|
801 | 801 | |
---|
| 802 | +#ifdef CONFIG_PSTORE_BOOT_LOG |
---|
802 | 803 | for (i = 0; i < cxt->max_boot_log_cnt; i++) { |
---|
803 | 804 | prz = cxt->boot_przs[i]; |
---|
804 | 805 | _ramoops_register_ram_zone_info_to_minidump(prz); |
---|
805 | 806 | } |
---|
| 807 | +#endif |
---|
806 | 808 | |
---|
807 | 809 | for (i = 0; i < cxt->max_dump_cnt; i++) { |
---|
808 | 810 | prz = cxt->dprzs[i]; |
---|
.. | .. |
---|
854 | 856 | /* Make sure we didn't get bogus platform data pointer. */ |
---|
855 | 857 | if (!pdata) { |
---|
856 | 858 | pr_err("NULL platform data\n"); |
---|
| 859 | + err = -EINVAL; |
---|
857 | 860 | goto fail_out; |
---|
858 | 861 | } |
---|
859 | 862 | |
---|
.. | .. |
---|
869 | 872 | !pdata->ftrace_size && !pdata->pmsg_size)) { |
---|
870 | 873 | pr_err("The memory size and the record/console size must be " |
---|
871 | 874 | "non-zero\n"); |
---|
| 875 | + err = -EINVAL; |
---|
872 | 876 | goto fail_out; |
---|
873 | 877 | } |
---|
874 | 878 | #endif |
---|