mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: Fix kw issue in target_if_nan_register_events
Potential NULL pointer dereference of handle in target_if_nan_register_events. Add null check in the function. Change-Id: I1fc57d712713bc47345b178c972cc5fc926a42d0 CRs-Fixed: 2317017
This commit is contained in:
parent
1f64b2453e
commit
de9bd0182e
1 changed files with 4 additions and 0 deletions
|
|
@ -685,6 +685,10 @@ QDF_STATUS target_if_nan_register_events(struct wlan_objmgr_psoc *psoc)
|
|||
int ret;
|
||||
wmi_unified_t handle = get_wmi_unified_hdl_from_psoc(psoc);
|
||||
|
||||
if (!handle) {
|
||||
target_if_err("handle is NULL");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
ret = wmi_unified_register_event_handler(handle,
|
||||
wmi_ndp_initiator_rsp_event_id,
|
||||
target_if_ndp_initiator_rsp_handler,
|
||||
|
|
|
|||
Loading…
Reference in a new issue