aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wl/if_wl.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-09-19 03:10:21 +0000
committerWarner Losh <imp@FreeBSD.org>2005-09-19 03:10:21 +0000
commitad4f426ef63acf8f93962c281274c677a055e500 (patch)
treec3358cebc77043ea8b2a3a5036b02dad6a674b7e /sys/dev/wl/if_wl.c
parent6763e7c1edc7198eca8ab7017018b03f5c41e012 (diff)
Notes
Diffstat (limited to 'sys/dev/wl/if_wl.c')
-rw-r--r--sys/dev/wl/if_wl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c
index f34915f08bde..0df46caf8353 100644
--- a/sys/dev/wl/if_wl.c
+++ b/sys/dev/wl/if_wl.c
@@ -589,7 +589,6 @@ wldetach(device_t device)
ifp = sc->ifp;
ether_ifdetach(ifp);
- if_free(ifp);
WL_LOCK(sc);
@@ -607,6 +606,7 @@ wldetach(device_t device)
bus_generic_detach(device);
wl_deallocate_resources(device);
WL_UNLOCK(sc);
+ if_free(ifp);
mtx_destroy(&sc->wl_mtx);
return (0);
}