mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Free rx_mgmt in function tdls_process_rx_frame
Currently, in function tdls_process_rx_frame. If vdev is NULL then rx_mgmt memory is not freed. Free the rx_mgmt memory before returning from function tdls_process_rx_frame. Change-Id: I5be27a7fa8a9417f578e406f3f9e8c7394439fa8 CRs-Fixed: 2436241
This commit is contained in:
parent
a6c3d27152
commit
c59b7a1c0c
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,6 @@ static QDF_STATUS tdls_process_rx_mgmt(
|
|||
else
|
||||
tdls_debug("rx mgmt, but no valid up layer callback");
|
||||
|
||||
qdf_mem_free(rx_mgmt);
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
@ -163,6 +162,7 @@ QDF_STATUS tdls_process_rx_frame(struct scheduler_msg *msg)
|
|||
wlan_objmgr_vdev_release_ref(vdev, WLAN_TDLS_NB_ID);
|
||||
}
|
||||
|
||||
qdf_mem_free(tdls_rx->rx_mgmt);
|
||||
qdf_mem_free(msg->bodyptr);
|
||||
msg->bodyptr = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue