summaryrefslogtreecommitdiffstats
path: root/sys/dev/an
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/an')
-rw-r--r--sys/dev/an/if_an.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c
index 60c7892..9fd258a 100644
--- a/sys/dev/an/if_an.c
+++ b/sys/dev/an/if_an.c
@@ -288,7 +288,8 @@ int an_attach(sc, unit, flags)
{
struct ifnet *ifp = &sc->arpcom.ac_if;
- mtx_init(&sc->an_mtx, device_get_nameunit(sc->an_dev), MTX_DEF);
+ mtx_init(&sc->an_mtx, device_get_nameunit(sc->an_dev), MTX_DEF |
+ MTX_RECURSE);
AN_LOCK(sc);
sc->an_gone = 0;
OpenPOWER on IntegriCloud