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:
Jiachao Wu 2018-02-02 16:01:04 +08:00 • committed by snandini
commit 418b7ae6ee

View file

@ -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;
}