Przeglądaj źródła

qcacmn: Use right API for retrieving pdev based on id

We are seeing a invalid memory access crash
in the dp_get_pdev_for_mac_id call from
dp_rx_process_invalid_peer, due to invalid mac id passed,
probably due to some stack correction.

We should instead use dp_get_pdev_for_lmac_id from
dp_rx_process_invalid_peer, where for invalid
mac id, we assert.

Change-Id: I0737132b5bbdd2fcbdb714d4643a69184ae3821e
CRs-Fixed: 2618432
Vivek 5 lat temu
rodzic
commit
10d8aff10e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      dp/wifi3.0/dp_rx.c

+ 1 - 1
dp/wifi3.0/dp_rx.c

@@ -924,7 +924,7 @@ free:
 	}
 
 	/* Reset the head and tail pointers */
-	pdev = dp_get_pdev_for_mac_id(soc, mac_id);
+	pdev = dp_get_pdev_for_lmac_id(soc, mac_id);
 	if (pdev) {
 		pdev->invalid_peer_head_msdu = NULL;
 		pdev->invalid_peer_tail_msdu = NULL;