Forráskód Böngészése

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
Bala Venkatesh 6 éve
szülő
commit
c59b7a1c0c
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      components/tdls/core/src/wlan_tdls_mgmt.c

+ 1 - 1
components/tdls/core/src/wlan_tdls_mgmt.c

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