Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2009 23:21:19 +0000 (UTC)
From:      Coleman Kane <cokane@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r195791 - head/sys/dev/if_ndis
Message-ID:  <200907202321.n6KNLJwb091585@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cokane
Date: Mon Jul 20 23:21:19 2009
New Revision: 195791
URL: http://svn.freebsd.org/changeset/base/195791

Log:
  Fix regression in last set of commits. Submitted via e-mail and then
  nagged again via PR. Thank Paul for his persistence and contributions.
  
  PR:		136895
  Submitted by:	Paul B. Mahol <onemda@gmail.com>
  Reviewed by:	sam (timeout, 10 days), weongyo (timeout, 10 days), me
  Approved by:	re (Kostik Belousov <kostikbel@gmail.com>)

Modified:
  head/sys/dev/if_ndis/if_ndis.c

Modified: head/sys/dev/if_ndis/if_ndis.c
==============================================================================
--- head/sys/dev/if_ndis/if_ndis.c	Mon Jul 20 21:45:44 2009	(r195790)
+++ head/sys/dev/if_ndis/if_ndis.c	Mon Jul 20 23:21:19 2009	(r195791)
@@ -2292,6 +2292,8 @@ ndis_setstate_80211(sc)
 	ifp = sc->ifp;
 	ic = ifp->if_l2com;
 	vap = TAILQ_FIRST(&ic->ic_vaps);
+	if (vap == NULL)
+		return;
 
 	if (!NDIS_INITIALIZED(sc)) {
 		DPRINTF(("%s: NDIS not initialized\n", __func__));



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