mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
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
This commit is contained in:
parent
afa1553e87
commit
cf684760d6
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue