diff options
| author | Naveen Rawat <naveenrawat@codeaurora.org> | 2016-06-27 15:30:24 -0700 |
|---|---|---|
| committer | Nandini Suresh <snandini@codeaurora.org> | 2016-06-30 11:06:14 -0700 |
| commit | cf684760d68de5535ebdc6b53abf4fd0aa18030a (patch) | |
| tree | 8ae24eb6fd48583ffdb7357b66c628a4067d614e | |
| parent | afa1553e878cbf2b710070711bca487691e555e6 (diff) | |
qcacld-3.0: Fix NULL pointer dereference in sme_register_ftm_msg_processor
In function sme_register_ftm_msg_processor, remove access to mac_ctx which is
dereferencing a NULL pointer.
Change-Id: I6e2db08703b3beff23f9398d9d1c88e1c6bcb229
CRs-Fixed: 1034255
| -rw-r--r-- | core/sme/src/common/sme_api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 362cccf7ce02..44d99f1c06fa 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -4785,9 +4785,11 @@ void sme_register_ftm_msg_processor(tHalHandle hal, tpAniSirGlobal mac_ctx = PMAC_STRUCT(hal); if (mac_ctx == NULL) { - sms_log(mac_ctx, LOGE, FL("mac_ctx is NULL")); + QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR, + FL("mac ctx is NULL")); return; } + mac_ctx->ftm_msg_processor_callback = callback; return; } |
