Fix kernel panic in rt2661_tx_intr() if no frames has been sent.

Obtained from:	OpenBSD (sys/dev/ic/rt2661.c rev. 1.15)
This commit is contained in:
fjoe 2006-06-05 20:06:29 +00:00
parent 50ddaeffca
commit 952053eb1c

View File

@ -962,6 +962,10 @@ rt2661_tx_intr(struct rt2661_softc *sc)
data = &txq->data[txq->stat];
rn = (struct rt2661_node *)data->ni;
/* if no frame has been sent, ignore */
if (rn == NULL)
continue;
switch (RT2661_TX_RESULT(val)) {
case RT2661_TX_SUCCESS:
retrycnt = RT2661_TX_RETRYCNT(val);