summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs/xfs
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2006-06-10 19:02:13 +0000
committerrodrigc <rodrigc@FreeBSD.org>2006-06-10 19:02:13 +0000
commit8ef0ef581a3437eff73043261740eeef318da550 (patch)
tree2dd3222f80b705d046a6dba2e3bd6041ad423c5e /sys/gnu/fs/xfs
parentf6e61fa1d6a8a222351596230df0d483323cf474 (diff)
downloadFreeBSD-src-8ef0ef581a3437eff73043261740eeef318da550.zip
FreeBSD-src-8ef0ef581a3437eff73043261740eeef318da550.tar.gz
Do not call vput() after we call VOP_UNLOCK().
Diffstat (limited to 'sys/gnu/fs/xfs')
-rw-r--r--sys/gnu/fs/xfs/FreeBSD/xfs_super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_super.c b/sys/gnu/fs/xfs/FreeBSD/xfs_super.c
index d01ff4e..f840297 100644
--- a/sys/gnu/fs/xfs/FreeBSD/xfs_super.c
+++ b/sys/gnu/fs/xfs/FreeBSD/xfs_super.c
@@ -182,11 +182,11 @@ xfs_blkdev_get(
g_topology_unlock();
PICKUP_GIANT();
- VOP_UNLOCK(devvp, 0, td);
if (error) {
vput(devvp);
return (error);
}
+ VOP_UNLOCK(devvp, 0, td);
devvp->v_bufobj.bo_private = cp;
devvp->v_bufobj.bo_ops = &xfs_bo_ops;
OpenPOWER on IntegriCloud