mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Use appropriate list API
Use list_for_each_entry_safe API to traverse list while deleting list entry in cds_drop_rxpkt_by_staid to avoid crash. CRs-Fixed: 943767 Change-Id: I4d09fd88f0faefacfc886866d9045b09feeb4432
This commit is contained in:
parent
11dbd38e50
commit
2881312e10
1 changed files with 1 additions and 1 deletions
|
|
@ -750,7 +750,7 @@ void cds_drop_rxpkt_by_staid(p_cds_sched_context pSchedContext, uint16_t staId)
|
|||
}
|
||||
spin_unlock_bh(&pSchedContext->ol_rx_queue_lock);
|
||||
|
||||
list_for_each_entry(pkt, &local_list, list) {
|
||||
list_for_each_entry_safe(pkt, tmp, &local_list, list) {
|
||||
list_del(&pkt->list);
|
||||
buf = pkt->Rxpkt;
|
||||
while (buf) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue