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

Commit e9554c4c authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Fix a bug when sending firmware memory through QMI



Return error code if memory for firmware is not available.

Change-Id: Ia1d9af47c494108a2f25cf4df7bc18c3b1a7f48b
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 8a12cad4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -259,6 +259,7 @@ int cnss_wlfw_respond_mem_send_sync(struct cnss_plat_data *plat_priv)

	if (!fw_mem->pa || !fw_mem->size) {
		cnss_pr_err("Memory for FW is not available!\n");
		ret = -ENOMEM;
		goto out;
	}