Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2008 11:58:06 GMT
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 154927 for review
Message-ID:  <200812181158.mBIBw6Lj029746@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154927

Change 154927 by weongyo@weongyo_ws on 2008/12/18 11:57:57

	fix a fault that sometimes ndis_getstate_80211() function is called
	just after the attach is done.
	
	Should be committed into HEAD.

Affected files ...

.. //depot/projects/ndisusb/sys/dev/if_ndis/if_ndis.c#10 edit

Differences ...

==== //depot/projects/ndisusb/sys/dev/if_ndis/if_ndis.c#10 (text+ko) ====

@@ -2699,6 +2699,8 @@
 	ifp = sc->ifp;
 	ic = ifp->if_l2com;
 	vap = TAILQ_FIRST(&ic->ic_vaps);
+	if (vap == NULL)
+		return;
 	ni = vap->iv_bss;
 
 	if (!NDIS_INITIALIZED(sc))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812181158.mBIBw6Lj029746>