mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
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
This commit is contained in:
parent
0108c7d032
commit
10d8aff10e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue