qcacld-3.0: debug check for l_rx_defrag_waitlist_remove(2)

qcacld-2.0 to qcacld-3.0 propagation

Add extra check for tqe->next!= NULL, to assert in only error scenario

Change-Id: I12e8ca5d5133ee0480d9c7c7c208854630272c89
CRs-Fixed: 839312
This commit is contained in:
DARAM SUDHA 2015-05-16 08:53:02 +05:30 • committed by Satish Singh
commit 9ffa9afe8d

View file

@ -400,7 +400,7 @@ void ol_rx_defrag_waitlist_remove(struct ol_txrx_peer_t *peer, unsigned tid)
rx_reorder->defrag_waitlist_elem.tqe_next = NULL;
rx_reorder->defrag_waitlist_elem.tqe_prev = NULL;
} else {
} else if (rx_reorder->defrag_waitlist_elem.tqe_next != NULL) {
TXRX_PRINT(TXRX_PRINT_LEVEL_FATAL_ERR,
"waitlist->tqe_prv = NULL\n");
CDF_ASSERT(0);