Avoid NULL deref.

Submitted by:	gavin
MFC after:	1 month
This commit is contained in:
Rui Paulo 2010-04-07 17:51:06 +00:00
parent 4a67d9e8b1
commit e313b3e882

View File

@ -900,11 +900,12 @@ rt2661_tx_intr(struct rt2661_softc *sc)
data->m = NULL;
ni = data->ni;
data->ni = NULL;
vap = ni->ni_vap;
/* if no frame has been sent, ignore */
if (ni == NULL)
continue;
else
vap = ni->ni_vap;
switch (RT2661_TX_RESULT(val)) {
case RT2661_TX_SUCCESS: