svn commit: r206371 - head/sys/dev/ral
Rui Paulo
rpaulo at FreeBSD.org
Wed Apr 7 17:51:07 UTC 2010
Author: rpaulo
Date: Wed Apr 7 17:51:06 2010
New Revision: 206371
URL: http://svn.freebsd.org/changeset/base/206371
Log:
Avoid NULL deref.
Submitted by: gavin
MFC after: 1 month
Modified:
head/sys/dev/ral/rt2661.c
Modified: head/sys/dev/ral/rt2661.c
==============================================================================
--- head/sys/dev/ral/rt2661.c Wed Apr 7 17:49:47 2010 (r206370)
+++ head/sys/dev/ral/rt2661.c Wed Apr 7 17:51:06 2010 (r206371)
@@ -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:
More information about the svn-src-all
mailing list