Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19ccf5a5 authored by Naman Padhiar's avatar Naman Padhiar Committed by Mohammed Siddiq
Browse files

cnss2: Assert on FW memory allocation failure



Add code to assert if FW requested memory allocation fails.
This helps us to collect logs at the time of failure.

Change-Id: I8d3ff82eee545510318e0a9a2a128a71dc8a9fb3
Signed-off-by: default avatarNaman Padhiar <npadhiar@codeaurora.org>
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 713f0247
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3408,8 +3408,7 @@ int cnss_pci_alloc_fw_mem(struct cnss_pci_data *pci_priv)
			if (!fw_mem[i].va) {
				cnss_pr_err("Failed to allocate memory for FW, size: 0x%zx, type: %u\n",
					    fw_mem[i].size, fw_mem[i].type);

				return -ENOMEM;
				BUG();
			}
		}
	}