mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacmn: fix implict memory leak
Fix implict memory leak in P2P target if layer. Change-Id: Ic7dbf6673b67ec34e060b785c59dd3a99b855f6d CRs-Fixed: 2055496
This commit is contained in:
parent
eab19b3b61
commit
c6d738e3ce
1 changed files with 6 additions and 0 deletions
|
|
@ -89,6 +89,9 @@ static int target_p2p_lo_event_handler(ol_scn_t scn, uint8_t *data,
|
|||
status = p2p_rx_ops->lo_ev_handler(psoc, event_info);
|
||||
target_if_debug("call lo event handler, status:%d",
|
||||
status);
|
||||
} else {
|
||||
qdf_mem_free(event_info);
|
||||
target_if_debug("no valid lo event handler");
|
||||
}
|
||||
|
||||
return qdf_status_to_os_return(status);
|
||||
|
|
@ -152,6 +155,9 @@ static int target_p2p_noa_event_handler(ol_scn_t scn, uint8_t *data,
|
|||
status = p2p_rx_ops->noa_ev_handler(psoc, event_info);
|
||||
target_if_debug("call noa event handler, status:%d",
|
||||
status);
|
||||
} else {
|
||||
qdf_mem_free(event_info);
|
||||
target_if_debug("no valid noa event handler");
|
||||
}
|
||||
|
||||
return qdf_status_to_os_return(status);
|
||||
|
|
|
|||
Loading…
Reference in a new issue