diff options
| author | Gustavo Solaira <gustavos@qti.qualcomm.com> | 2015-04-14 09:30:58 -0700 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-04-15 17:16:57 +0530 |
| commit | 945bc1d2ab744974df16b9a2bbe21e1f116ce473 (patch) | |
| tree | fd8cf4d385d6b91caec5a29b472e7ccce2521ea3 | |
| parent | bb322668518282df2a5e8a6139b6d4d3c1dd4729 (diff) | |
qcacld: pe: Fix handling of malloc failure when generating TA frame
Fix a KW issue caused by not exiting after NULL pointer
check.
Change-Id: I03d8399e6b95d7128f1e5a20c9774c81b2dfefb0
CRs-Fixed: 754373
| -rw-r--r-- | CORE/MAC/src/pe/sch/schApi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CORE/MAC/src/pe/sch/schApi.c b/CORE/MAC/src/pe/sch/schApi.c index 84a4e19c4af3..8052338b18bd 100644 --- a/CORE/MAC/src/pe/sch/schApi.c +++ b/CORE/MAC/src/pe/sch/schApi.c @@ -618,6 +618,7 @@ int schGenTimingAdvertFrame(tpAniSirGlobal mac_ctx, tSirMacAddr self_addr, *buf = vos_mem_malloc(buf_size); if (*buf == NULL) { schLog(mac_ctx, LOGE, FL("Cannot allocate memory")); + return eSIR_FAILURE; } vos_mem_zero(*buf, buf_size); |
