1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00

When doing BAW tracking, don't dereference a NULL pointer if the BAW

slot is actually NULL.
This commit is contained in:
Adrian Chadd 2013-04-21 00:41:15 +00:00
parent da0e842acc
commit 3527f6a9b1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249715

View File

@ -2590,7 +2590,8 @@ ath_tx_update_baw(struct ath_softc *sc, struct ath_node *an,
__func__,
bf, SEQNO(bf->bf_state.bfs_seqno),
tid->tx_buf[cindex],
SEQNO(tid->tx_buf[cindex]->bf_state.bfs_seqno));
(tid->tx_buf[cindex] != NULL) ?
SEQNO(tid->tx_buf[cindex]->bf_state.bfs_seqno) : -1);
}
tid->tx_buf[cindex] = NULL;