summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2002-04-30 15:50:09 +0000
committerjulian <julian@FreeBSD.org>2002-04-30 15:50:09 +0000
commitb393629971032976b771bf25e7d7cb84b4424769 (patch)
tree6ab9381f92e07406d145494cda62627dcd8b2b67 /sys
parent1fe12f5d34a60db3b2ab47a6b4bae7920e04748a (diff)
downloadFreeBSD-src-b393629971032976b771bf25e7d7cb84b4424769.zip
FreeBSD-src-b393629971032976b771bf25e7d7cb84b4424769.tar.gz
Add the extra argument to mtx_init()
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/my/if_my.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/my/if_my.c b/sys/dev/my/if_my.c
index c8484a4..0d7b98d 100644
--- a/sys/dev/my/if_my.c
+++ b/sys/dev/my/if_my.c
@@ -857,7 +857,8 @@ my_attach(device_t dev)
}
bzero(sc, sizeof(struct my_softc));
- mtx_init(&sc->my_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE);
+ mtx_init(&sc->my_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
+ MTX_DEF | MTX_RECURSE);
MY_LOCK(sc);
/*
OpenPOWER on IntegriCloud