mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacld-3.0: debug check for l_rx_defrag_waitlist_remove
qcacld-2.0 to qcacld-3.0 propagation while wlan disconnection is happening, in the process of peer-cleanup check for tqu->prev to be non-null before calling TAILQ_REMOVE. Change-Id: I5841dfe80b954bdfac5147f5e3e3661cc85ba4b1 CRs-Fixed: 836447
This commit is contained in:
parent
ecf4211368
commit
c653bbac92
1 changed files with 6 additions and 2 deletions
|
|
@ -393,14 +393,18 @@ void ol_rx_defrag_waitlist_remove(struct ol_txrx_peer_t *peer, unsigned tid)
|
|||
struct ol_txrx_pdev_t *pdev = peer->vdev->pdev;
|
||||
struct ol_rx_reorder_t *rx_reorder = &peer->tids_rx_reorder[tid];
|
||||
|
||||
if (rx_reorder->defrag_waitlist_elem.tqe_next != NULL ||
|
||||
rx_reorder->defrag_waitlist_elem.tqe_prev != NULL) {
|
||||
if (rx_reorder->defrag_waitlist_elem.tqe_next != NULL) {
|
||||
|
||||
TAILQ_REMOVE(&pdev->rx.defrag.waitlist, rx_reorder,
|
||||
defrag_waitlist_elem);
|
||||
|
||||
rx_reorder->defrag_waitlist_elem.tqe_next = NULL;
|
||||
rx_reorder->defrag_waitlist_elem.tqe_prev = NULL;
|
||||
} else {
|
||||
TXRX_PRINT(TXRX_PRINT_LEVEL_FATAL_ERR,
|
||||
"waitlist->tqe_prv = NULL\n");
|
||||
CDF_ASSERT(0);
|
||||
rx_reorder->defrag_waitlist_elem.tqe_next = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue