diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c index 51b818fd60bb..b4dbd2e76397 100644 --- a/sys/dev/sn/if_sn.c +++ b/sys/dev/sn/if_sn.c @@ -235,7 +235,7 @@ sn_detach(device_t dev) ether_ifdetach(ifp); if_free(ifp); sn_deactivate(dev); - SN_LOCK_DESTORY(sc); + SN_LOCK_DESTROY(sc); return 0; } diff --git a/sys/dev/sn/if_snvar.h b/sys/dev/sn/if_snvar.h index 2ff41b6a28cb..048f23a41fc0 100644 --- a/sys/dev/sn/if_snvar.h +++ b/sys/dev/sn/if_snvar.h @@ -75,7 +75,7 @@ void sn_deactivate(device_t); #define SN_LOCK_INIT(_sc) \ mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), \ MTX_NETWORK_LOCK, MTX_DEF) -#define SN_LOCK_DESTORY(_sc) mtx_destroy(&_sc->sc_mtx); +#define SN_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx); #define SN_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED); #define SN_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED);