diff options
| author | Chandrasekaran, Manishekar <cmshekar@qti.qualcomm.com> | 2014-01-14 03:13:27 +0530 |
|---|---|---|
| committer | Prakash Dhavali <pdhavali@qca.qualcomm.com> | 2014-01-25 21:02:03 -0800 |
| commit | 873b5245cf881db8765e5b024fb7a79a3dd55159 (patch) | |
| tree | 34896ff07198d238d414634d6891eca16992302d | |
| parent | 5fa70148de427fd0a903bdbc1dfb4476c3c800da (diff) | |
cld: Prevent host reboot loop, in error case, during driver initialization.
In the current code, during driver initialization failure, -1 is being
returned as error code from HDD. This is not a valid error code and it
results in host driver running into reboot loop. In this fix, suitable
error code is returned to resolve the issue.
Change-Id: Id25562cc507a66ee60cc00e2eff7f9a3e7b71957
CRs-Fixed: 599568
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index abb82d93b15a..c4300b6d6c67 100644 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -9456,7 +9456,7 @@ static int hdd_driver_init( void) hddLog(VOS_TRACE_LEVEL_FATAL,"%s: WLAN Driver Initialization failed", __func__); vos_preClose( &pVosContext ); - ret_status = -1; + ret_status = -ENODEV; break; } else |
