From e7158ddeb9cfcf28026ae10db9519b7bc2f13896 Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Thu, 12 Jan 2017 16:56:43 -0800 Subject: qcacld-3.0: Fix NULL pointer dereference Fix NULL pointer dereference. Change-Id: If5032543798da87c83647899c1a0711ba924178a CRs-Fixed: 1111041 --- core/mac/src/pe/lim/lim_api.c | 5 +++-- core/sme/src/nan/nan_datapath_api.c | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index 269673ed38df..63d090034697 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/core/mac/src/pe/lim/lim_api.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -2190,7 +2190,8 @@ void lim_update_lost_link_info(tpAniSirGlobal mac, tpPESession session, tSirMsgQ mmh_msg; if ((NULL == mac) || (NULL == session)) { - lim_log(mac, LOGE, FL("parameter NULL")); + QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_ERROR, + FL("parameter NULL")); return; } if (!LIM_IS_STA_ROLE(session)) { diff --git a/core/sme/src/nan/nan_datapath_api.c b/core/sme/src/nan/nan_datapath_api.c index 2f4df9f12b79..9d09ab08c92c 100644 --- a/core/sme/src/nan/nan_datapath_api.c +++ b/core/sme/src/nan/nan_datapath_api.c @@ -473,8 +473,7 @@ QDF_STATUS csr_process_ndp_initiator_request(tpAniSirGlobal mac_ctx, if (NULL == cmd) { sms_log(mac_ctx, LOGE, FL("Invalid req_params")); - status = QDF_STATUS_E_INVAL; - goto sme_initiator_req_failed; + return QDF_STATUS_E_INVAL; } req = &cmd->u.initiator_req; -- cgit v1.2.3