mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacld-3.0: Fix a memory leak in wma mgmt
Fix a memory leak in wma_mgmt_rx_process. Change-Id: Id8a2065ca8b1adb20235580798333068852af897 CRs-Fixed: 2183089
This commit is contained in:
parent
7649486ecc
commit
418b7ae6ee
1 changed files with 1 additions and 0 deletions
|
|
@ -3855,6 +3855,7 @@ static int wma_mgmt_rx_process(void *handle, uint8_t *data,
|
|||
if (mgmt_rx_params->buf_len > data_len) {
|
||||
WMA_LOGE("%s: Invalid rx mgmt packet, data_len %u, mgmt_rx_params->buf_len %u",
|
||||
__func__, data_len, mgmt_rx_params->buf_len);
|
||||
qdf_mem_free(mgmt_rx_params);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue