aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fxp
diff options
context:
space:
mode:
authorChuck Paterson <cp@FreeBSD.org>2000-10-13 18:59:29 +0000
committerChuck Paterson <cp@FreeBSD.org>2000-10-13 18:59:29 +0000
commitf59dd3ae6a2cdfc1b0e1f4230df471b19e42bb31 (patch)
tree35b93919aa6bc1795ecc1d913c9887aad3a2328a /sys/dev/fxp
parent1e856a7b34a5e77102e75c02d9ece7099965821b (diff)
Notes
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/if_fxp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 08e7a29d0df3..9a5def58ce3c 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -317,7 +317,7 @@ fxp_attach(device_t dev)
u_long val;
int rid;
- mtx_init(&sc->sc_mtx, "fxp", MTX_DEF);
+ mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_DEF);
callout_handle_init(&sc->stat_ch);
FXP_LOCK(sc);
@@ -453,6 +453,7 @@ fxp_detach(device_t dev)
free(sc->mcsp, M_DEVBUF);
FXP_UNLOCK(sc);
+ mtx_destroy(&sc->sc_mtx);
return 0;
}