summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaveen Rawat <naveenrawat@codeaurora.org>2016-11-17 11:57:24 -0800
committerqcabuildsw <qcabuildsw@localhost>2016-11-22 20:11:36 -0800
commita10cc293645b5ee5cf362e089b19af872864ba46 (patch)
tree007cf44cda6ce66ae7161ece16ca8f4272007dc6
parent22afb93004c037b92d08abff647cf5577129b18d (diff)
qcacld-3.0: Fix null pointer check condition for local_ie
In function csr_remove_from_tmp_list, fix null pointer check condition so that either local_ie is null or csr_remove_from_tmp_list failed. This will ensure local_ie is valid before being dereferenced. Change-Id: I91eda3ebe3d841f94f78b35d686e31b47ece8a79 CRs-Fixed: 1091486
-rw-r--r--core/sme/src/csr/csr_api_scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c
index 680f5bb0fbee..ab595ed1707c 100644
--- a/core/sme/src/csr/csr_api_scan.c
+++ b/core/sme/src/csr/csr_api_scan.c
@@ -2912,7 +2912,7 @@ csr_remove_from_tmp_list(tpAniSirGlobal mac_ctx,
local_ie = (tDot11fBeaconIEs *)(bss_dscp->Result.pvIes);
status = csr_get_parsed_bss_description_ies(mac_ctx,
&bss_dscp->Result.BssDescriptor, &local_ie);
- if (!(local_ie || QDF_IS_STATUS_SUCCESS(status))) {
+ if (!local_ie || !QDF_IS_STATUS_SUCCESS(status)) {
sms_log(mac_ctx, LOGE, FL("Cannot pared IEs"));
csr_free_scan_result_entry(mac_ctx, bss_dscp);
continue;