summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-02-22 14:41:04 +0000
committerphk <phk@FreeBSD.org>2005-02-22 14:41:04 +0000
commitd77b9fb94f3e72de3ae551fe226b132606e39439 (patch)
tree8e9b4ac704b6746a4ff1bf7035a436ed2f92d3aa /sys/fs/devfs
parentb09090425ac9ba4d37d45dcf8948dcb26015700a (diff)
downloadFreeBSD-src-d77b9fb94f3e72de3ae551fe226b132606e39439.zip
FreeBSD-src-d77b9fb94f3e72de3ae551fe226b132606e39439.tar.gz
Make dev_ref() require the dev_lock() to be held and use it from
devfs instead of directly frobbing the si_refcount.
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r--sys/fs/devfs/devfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index dc20a60..e51ca4f 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -197,7 +197,7 @@ loop:
vp->v_type = VCHR;
VI_LOCK(vp);
dev_lock();
- dev->si_refcount++;
+ dev_ref(dev);
vp->v_rdev = dev;
SLIST_INSERT_HEAD(&dev->si_hlist, vp, v_specnext);
dev->si_usecount += vp->v_usecount;
OpenPOWER on IntegriCloud