aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorTai-hwa Liang <avatar@FreeBSD.org>2007-08-09 13:29:26 +0000
committerTai-hwa Liang <avatar@FreeBSD.org>2007-08-09 13:29:26 +0000
commitc7f61979377545df55d17892ace7726cf90d905a (patch)
treece87b60b8aa83d2c18c51c6bf9cf0e2dce022eb8 /sys/dev/wi
parentdb1bdf2b02d3b5be010b50efb461938b83f741df (diff)
Notes
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index e9dfad3cfc719..efa7e4a26b29b 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -267,12 +267,12 @@ wi_attach(device_t dev)
int error;
ifp = sc->sc_ifp = if_alloc(IFT_ETHER);
- ifp->if_softc = sc;
if (ifp == NULL) {
device_printf(dev, "can not if_alloc\n");
wi_free(dev);
return (ENOSPC);
}
+ ifp->if_softc = sc;
/*
* NB: no locking is needed here; don't put it here