mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
icnss2: Avoid assert on QMI send failure
There is possibility that ICNSS asserts on QMI send failure even after receiving FW down indication. To avoid such scenario check for FW down before ASSERT. Change-Id: I68981879601e6fba459e9b48405eed370e00e6c6 Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
This commit is contained in:
parent
b8ce8e7c77
commit
df36746b6c
1 changed files with 2 additions and 2 deletions
|
|
@ -1094,7 +1094,7 @@ err_send:
|
|||
release_firmware(fw_entry);
|
||||
err_req_fw:
|
||||
if (bdf_type != ICNSS_BDF_REGDB)
|
||||
ICNSS_ASSERT(0);
|
||||
ICNSS_QMI_ASSERT();
|
||||
kfree(req);
|
||||
kfree(resp);
|
||||
return ret;
|
||||
|
|
@ -3132,7 +3132,7 @@ int wlfw_host_cap_send_sync(struct icnss_priv *priv)
|
|||
return 0;
|
||||
|
||||
out:
|
||||
ICNSS_ASSERT(0);
|
||||
ICNSS_QMI_ASSERT();
|
||||
kfree(req);
|
||||
kfree(resp);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue