Merge "cnss2: Donot assert if BDF download fails on reboot"

This commit is contained in:
qctecmdr 2020-08-26 13:02:17 -07:00 • committed by Gerrit - the friendly Code Review server
commit 8b51ca0984

View file

@ -650,7 +650,9 @@ err_send:
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);