瀏覽代碼

qcacmn: Fix use after free of AST entry

In WDS learn API add changes to avoid accessing the
AST entry which is deleted

Change-Id: I9f0152e72ec99fe0ae6029d5ddbc125f3b1e9d5a
CRs-Fixed: 3453018
Chaithanya Garrepalli 2 年之前
父節點
當前提交
9a52f07701
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dp/wifi3.0/dp_txrx_wds.h

+ 2 - 0
dp/wifi3.0/dp_txrx_wds.h

@@ -341,6 +341,7 @@ dp_rx_wds_add_or_update_ast(struct dp_soc *soc,
 				 * radio
 				 */
 				dp_peer_del_ast(soc, ast);
+				return;
 			} else {
 				/* this case is when a STA roams from one
 				 * reapter to another repeater, but inside
@@ -353,6 +354,7 @@ dp_rx_wds_add_or_update_ast(struct dp_soc *soc,
 				if (soc->ast_override_support &&
 				    (ta_peer->vdev->opmode == wlan_op_mode_sta)) {
 					dp_peer_del_ast(soc, ast);
+					return;
 				} else {
 					ta_base_peer =
 					dp_peer_get_ref_by_id(soc,