diff options
author | cokane <cokane@FreeBSD.org> | 2009-07-20 23:21:19 +0000 |
---|---|---|
committer | cokane <cokane@FreeBSD.org> | 2009-07-20 23:21:19 +0000 |
commit | 827e061024dc7ff7a750eda66504ef7ba91fd8ee (patch) | |
tree | 01fb48136703aece686f82ed0da53af57cce8706 | |
parent | cd553309bd8a26e64e416d619bcaea9682f8ec83 (diff) | |
download | FreeBSD-src-827e061024dc7ff7a750eda66504ef7ba91fd8ee.zip FreeBSD-src-827e061024dc7ff7a750eda66504ef7ba91fd8ee.tar.gz |
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>)
-rw-r--r-- | sys/dev/if_ndis/if_ndis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c index 426418b..cd23972 100644 --- a/sys/dev/if_ndis/if_ndis.c +++ b/sys/dev/if_ndis/if_ndis.c @@ -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__)); |