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

Commit 119ac000 authored by Manikandan Mohan's avatar Manikandan Mohan
Browse files

cnss2: Donot assert if BDF download fails on reboot



request_firmware returns -EAGAIN failure if user space access is
disabled during reboot. Thus for BDF download failure check this
condition before assert.

Change-Id: Ib6c90b1a02763b216a474729c3191c8c05772af2
Signed-off-by: default avatarManikandan Mohan <manikand@codeaurora.org>
parent adbbbc56
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -650,7 +650,9 @@ int cnss_wlfw_bdf_dnld_send_sync(struct cnss_plat_data *plat_priv,
	if (bdf_type != CNSS_BDF_DUMMY)
		release_firmware(fw_entry);
err_req_fw:
	if (bdf_type != CNSS_BDF_REGDB)
	if (!(bdf_type == CNSS_BDF_REGDB ||
	      test_bit(CNSS_IN_REBOOT, &plat_priv->driver_state) ||
	      ret == -EAGAIN))
		CNSS_ASSERT(0);
	kfree(req);
	kfree(resp);