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

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 éve
szülő
commit
9a52f07701
1 módosított fájl, 2 hozzáadás és 0 törlés
  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,