Merge "qcacld-3.0: CL 1639162 – update fw common interface files" into wlan-cld3.driver.lnx.1.1-dev
diff --git a/core/mac/src/pe/lim/lim_link_monitoring_algo.c b/core/mac/src/pe/lim/lim_link_monitoring_algo.c
index 3e578b8..94b4160 100644
--- a/core/mac/src/pe/lim/lim_link_monitoring_algo.c
+++ b/core/mac/src/pe/lim/lim_link_monitoring_algo.c
@@ -76,7 +76,6 @@
 		msg->staId, msg->reasonCode);
 
 	if (LIM_IS_IBSS_ROLE(session_entry)) {
-		qdf_mem_free(msg);
 		return;
 	}
 
@@ -87,7 +86,6 @@
 		lim_log(mac_ctx, LOGE,
 			FL("Invalid STA limSystemRole=%d"),
 			GET_LIM_SYSTEM_ROLE(session_entry));
-		qdf_mem_free(msg);
 		return;
 	}
 	stads->del_sta_ctx_rssi = msg->rssi;
@@ -98,7 +96,6 @@
 	if (stads->staIndex != msg->staId) {
 		lim_log(mac_ctx, LOGE, FL("staid mismatch: %d vs %d "),
 			stads->staIndex, msg->staId);
-		qdf_mem_free(msg);
 		return;
 	}
 
@@ -122,7 +119,6 @@
 			lim_log(mac_ctx, LOGE,
 				FL("Inv Del STA staId:%d, assocId:%d"),
 				msg->staId, msg->assocId);
-			qdf_mem_free(msg);
 			return;
 		} else {
 			lim_send_disassoc_mgmt_frame(mac_ctx,
@@ -169,7 +165,6 @@
 					"in some transit state, Addr = "
 					MAC_ADDRESS_STR),
 					MAC_ADDR_ARRAY(msg->bssId));
-			qdf_mem_free(msg);
 			return;
 		}
 
@@ -268,6 +263,7 @@
 		break;
 	}
 	qdf_mem_free(msg);
+	lim_msg->bodyptr = NULL;
 	return;
 }