From 945bc1d2ab744974df16b9a2bbe21e1f116ce473 Mon Sep 17 00:00:00 2001 From: Gustavo Solaira Date: Tue, 14 Apr 2015 09:30:58 -0700 Subject: 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 --- CORE/MAC/src/pe/sch/schApi.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3