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:
parent
50ddaeffca
commit
952053eb1c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user