svn commit: r249715 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Sun Apr 21 00:41:16 UTC 2013
Author: adrian
Date: Sun Apr 21 00:41:15 2013
New Revision: 249715
URL: http://svnweb.freebsd.org/changeset/base/249715
Log:
When doing BAW tracking, don't dereference a NULL pointer if the BAW
slot is actually NULL.
Modified:
head/sys/dev/ath/if_ath_tx.c
Modified: head/sys/dev/ath/if_ath_tx.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx.c Sat Apr 20 23:33:51 2013 (r249714)
+++ head/sys/dev/ath/if_ath_tx.c Sun Apr 21 00:41:15 2013 (r249715)
@@ -2590,7 +2590,8 @@ ath_tx_update_baw(struct ath_softc *sc,
__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;
More information about the svn-src-all
mailing list