mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacmn: Safely cleanup reorder frag list during RX defrag flush
Need to use tid_lock to protect the rx_tid data structure in the dp_rx_reorder_flush_frag function. Or else there will be race condition issues. CRs-Fixed: 2357226 Change-Id: I860a64b529f0548eced7b537c4180a2c57175a56
This commit is contained in:
parent
b0bedad338
commit
5fc91d835e
1 changed files with 3 additions and 0 deletions
|
|
@ -197,7 +197,10 @@ void dp_rx_defrag_waitlist_flush(struct dp_soc *soc)
|
|||
peer =
|
||||
container_of(rx_reorder, struct dp_peer,
|
||||
rx_tid[rx_reorder->tid]);
|
||||
|
||||
qdf_spin_lock_bh(&rx_reorder->tid_lock);
|
||||
dp_rx_reorder_flush_frag(peer, rx_reorder->tid);
|
||||
qdf_spin_unlock_bh(&rx_reorder->tid_lock);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue