Browse Source

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
jiad 7 years ago
parent
commit
195f703bd6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/hdd/src/wlan_hdd_main.c

+ 2 - 1
core/hdd/src/wlan_hdd_main.c

@@ -10426,7 +10426,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 == QDF_STATUS_E_FAILURE)
 		goto err_wiphy_unregister;
 
 	hdd_initialize_mac_address(hdd_ctx);