From owner-p4-projects@FreeBSD.ORG Thu Dec 18 11:58:07 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 448FB1065670; Thu, 18 Dec 2008 11:58:07 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 087521065674 for ; Thu, 18 Dec 2008 11:58:07 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D26498FC1C for ; Thu, 18 Dec 2008 11:58:06 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mBIBw6kZ029748 for ; Thu, 18 Dec 2008 11:58:06 GMT (envelope-from weongyo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mBIBw6Lj029746 for perforce@freebsd.org; Thu, 18 Dec 2008 11:58:06 GMT (envelope-from weongyo@FreeBSD.org) Date: Thu, 18 Dec 2008 11:58:06 GMT Message-Id: <200812181158.mBIBw6Lj029746@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to weongyo@FreeBSD.org using -f From: Weongyo Jeong To: Perforce Change Reviews Cc: Subject: PERFORCE change 154927 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2008 11:58:07 -0000 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))