Browse Source

Merge "qcacld-3.0: Assert when failed to parse at least one INI param" into wlan-cld3.driver.lnx.2.0

CNSS_WLAN Service 4 years ago
parent
commit
d2fb85c4a1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/hdd/src/wlan_hdd_main.c

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

@@ -12477,6 +12477,8 @@ struct hdd_context *hdd_context_create(struct device *dev)
 	if (QDF_IS_STATUS_ERROR(status)) {
 		hdd_err("Failed to parse cfg %s; status:%d\n",
 			WLAN_INI_FILE, status);
+		/* Assert if failed to parse at least one INI parameter */
+		QDF_BUG(status != QDF_STATUS_E_INVAL);
 		ret = qdf_status_to_os_return(status);
 		goto err_free_config;
 	}