cnss2: dump_enabled need to be checked before invoking qcom_dump

Dump_enabled need to be checked before invoking qcom_dump for
pushing the Wlan FW dump to file system. Otherwise SSR gets stuck.

CRs-Fixed: 3805707
Change-Id: I7bd5d0579f71c1b3fa88fc41cd274bc8f432dab5
This commit is contained in:
Jayachandran Sreekumaran
2024-05-06 17:21:01 +05:30
committed by Ravindra Konda
parent 8ac798203c
commit 92d5d3faf6

View File

@@ -3118,6 +3118,10 @@ int cnss_do_ramdump(struct cnss_plat_data *plat_priv)
struct qcom_dump_segment segment;
struct list_head head;
if (!dump_enabled()) {
cnss_pr_info("Dump collection is not enabled\n");
return 0;
}
INIT_LIST_HEAD(&head);
memset(&segment, 0, sizeof(segment));
segment.va = ramdump_info->ramdump_va;