diff options
| author | jiad <jiad@codeaurora.org> | 2018-01-31 15:18:09 +0800 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-04-16 07:57:25 -0700 |
| commit | 31cc39110a4295f9e7ac2d0359d83d3ec4b3461a (patch) | |
| tree | 11bb2b7aeea2ae976d8abbed7c7e2666c2f640ae | |
| parent | 6a937e0f8e261176979b1c234ed83e49f5ca2f3f (diff) | |
qcacld-3.0: save return value of hdd_ipa_init
If hdd_ipa_init failes, driver cleanup is done. But return value
of hdd_ipa_init is not saved and returned to caller. This will
lead to wrong behaviors if following actions depend on the
return value.
Fix is to save return value of hdd_ipa_init.
Change-Id: Iad10733c8fcb7049aa9573ccd1da51250aa7fddf
CRs-Fixed: 2181510
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 807890955182..73104a45f2dc 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -10857,7 +10857,8 @@ int hdd_wlan_startup(struct device *dev) if (hdd_ctx->config->enable_dp_trace) hdd_dp_trace_init(hdd_ctx->config); - if (hdd_ipa_init(hdd_ctx) == QDF_STATUS_E_FAILURE) + ret = hdd_ipa_init(hdd_ctx); + if (ret) goto err_wiphy_unregister; ret = hdd_initialize_mac_address(hdd_ctx); |
