summaryrefslogtreecommitdiffstats
path: root/sys/dev/ral
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-04-07 17:51:06 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-04-07 17:51:06 +0000
commitacb0e8efa1bc41d85368fbd21d5093920afacfe6 (patch)
tree37b101d0265c6202537797f72bfbc476e5facdab /sys/dev/ral
parent3777315b3a69dd7b7d76210bc9dd16809e035be6 (diff)
downloadFreeBSD-src-acb0e8efa1bc41d85368fbd21d5093920afacfe6.zip
FreeBSD-src-acb0e8efa1bc41d85368fbd21d5093920afacfe6.tar.gz
Avoid NULL deref.
Submitted by: gavin MFC after: 1 month
Diffstat (limited to 'sys/dev/ral')
-rw-r--r--sys/dev/ral/rt2661.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ral/rt2661.c b/sys/dev/ral/rt2661.c
index 94ab9ca..9bc8838 100644
--- a/sys/dev/ral/rt2661.c
+++ b/sys/dev/ral/rt2661.c
@@ -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:
OpenPOWER on IntegriCloud