diff options
| author | Nitesh Shah <niteshs@qti.qualcomm.com> | 2016-07-18 20:22:47 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-07-27 15:02:43 +0530 |
| commit | b2ce8df5e36540e3bc3d0283de6ee7531d4745a9 (patch) | |
| tree | 618f6e8fc79ad05c195cfaddf5d562809e4a3448 | |
| parent | 14253f2caf05eace8eed42c7c89abc24b9a6abfb (diff) | |
qcacld-2.0: Avoid return and send join response with fail
The function __limProcessSmeJoinReq returns if vos_mem_malloc
fails for pMlmJoinReq without giving any join response.
Fix is to send the join response with the failure reason.
Change-Id: I712f814b90ecd4c0322355dd9022441019ecd7a4
CRs-Fixed: 1034734
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c index 47572ad2ed18..7b8b8dc4ea68 100644 --- a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c +++ b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c @@ -1861,8 +1861,8 @@ __limProcessSmeJoinReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) tANI_U16 nSize; tANI_U8 sessionId; tpPESession psessionEntry = NULL; - tANI_U8 smesessionId; - tANI_U16 smetransactionId; + tANI_U8 smesessionId = 0; + tANI_U16 smetransactionId = 0; tPowerdBm localPowerConstraint = 0, regMax = 0; tANI_U16 ieLen; v_U8_t *vendorIE; @@ -2193,7 +2193,8 @@ __limProcessSmeJoinReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) { limLog(pMac, LOGP, FL("call to AllocateMemory " "failed for mlmJoinReq")); - return; + retCode = eSIR_SME_RESOURCES_UNAVAILABLE; + goto end; } (void) vos_mem_set((void *) pMlmJoinReq, val, 0); |
