Browse Source

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
Jiachao Wu 7 years ago
parent
commit
418b7ae6ee
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/wma/src/wma_mgmt.c

+ 1 - 0
core/wma/src/wma_mgmt.c

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