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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Viittaa uudesa ongelmassa
Block a user