From 10d8aff10e4b0646e6bdf1d0eeaf8b083dd37287 Mon Sep 17 00:00:00 2001 From: Vivek Date: Mon, 24 Feb 2020 11:22:52 +0530 Subject: [PATCH] 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 --- dp/wifi3.0/dp_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_rx.c b/dp/wifi3.0/dp_rx.c index f1912109cb..4143f347fd 100644 --- a/dp/wifi3.0/dp_rx.c +++ b/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;