summaryrefslogtreecommitdiff
path: root/sys/dev/xen/netback
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-08-20 19:17:53 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-08-20 19:17:53 +0000
commita56fe095f0d5fb20fc70b784acb0cd2d367d3e79 (patch)
treeee9b2a74c07c732ee357d4810494c3b6aecd6e71 /sys/dev/xen/netback
parent497e910cd321dbdc45c010417bb7079365234fcf (diff)
Notes
Diffstat (limited to 'sys/dev/xen/netback')
-rw-r--r--sys/dev/xen/netback/netback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/xen/netback/netback.c b/sys/dev/xen/netback/netback.c
index cabc4ab72414..a6111e265f58 100644
--- a/sys/dev/xen/netback/netback.c
+++ b/sys/dev/xen/netback/netback.c
@@ -1388,7 +1388,7 @@ vif_add_dev(struct xenbus_device *xdev)
devclass_t dc;
int err = 0;
- newbus_xlock();
+ mtx_lock(&Giant);
/* We will add a vif device as a child of nexus0 (for now) */
if (!(dc = devclass_find("nexus")) ||
@@ -1415,7 +1415,7 @@ vif_add_dev(struct xenbus_device *xdev)
done:
- newbus_xunlock();
+ mtx_unlock(&Giant);
return err;
}