Date: Sun, 19 Jul 2009 09:26:03 GMT From: Paul <onemda@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/136895: ndis regression Message-ID: <200907190926.n6J9Q33L004808@www.freebsd.org> Resent-Message-ID: <200907190930.n6J9U4PB055154@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 136895 >Category: kern >Synopsis: ndis regression >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 19 09:30:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Paul >Release: FreeBSD 8.0-BETA2 >Organization: >Environment: FreeBSD 8.0-BETA2 FreeBSD 8.0-BETA2 #5 r195750:195754: Sat Jul 18 17:00:16 UTC 2009 r@root:/usr/obj/usr/src/sys/kernel i386 >Description: regression introduced with r194432 >How-To-Repeat: put ndis0 up before creating vap >Fix: --- /sys/dev/if_ndis/if_ndis.c 2009-06-28 09:15:54.000000000 +0000 +++ if_ndis.c 2009-07-19 09:22:44.000000000 +0000 @@ -2292,6 +2292,8 @@ 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__)); Patch attached with submission follows: --- /sys/dev/if_ndis/if_ndis.c 2009-06-28 09:15:54.000000000 +0000 +++ if_ndis.c 2009-07-19 09:22:44.000000000 +0000 @@ -2292,6 +2292,8 @@ 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__)); >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907190926.n6J9Q33L004808>