mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
qcacld-3.0: Handle ipa pipes setup failure in wlan_ipa_uc_ol_init
When ipa setup pipes fails in wlan_ipa_uc_ol_init API, tx buff mapping is not done but during deinit path tx buff unmapping is called without mapping. Fix this by resetting uc_loaded flag to false when ipa pipes setup failure is encountered. Change-Id: Ic34320e56cee9e60381d9203dd95e268d0ef392b CRs-Fixed: 2957612
This commit is contained in:
parent
ebbb010d93
commit
8f4ead471f
1 changed files with 7 additions and 0 deletions
|
|
@ -3855,6 +3855,13 @@ QDF_STATUS wlan_ipa_uc_ol_init(struct wlan_ipa_priv *ipa_ctx,
|
|||
ipa_err("Failure to setup IPA pipes (status=%d)",
|
||||
status);
|
||||
status = QDF_STATUS_E_FAILURE;
|
||||
|
||||
if (wlan_ipa_uc_sta_is_enabled(ipa_ctx->config)) {
|
||||
qdf_cancel_work(&ipa_ctx->mcc_work);
|
||||
wlan_ipa_teardown_sys_pipe(ipa_ctx);
|
||||
}
|
||||
ipa_ctx->uc_loaded = false;
|
||||
|
||||
goto fail_return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue