Do not call vput() after we call VOP_UNLOCK().

This commit is contained in:
Craig Rodrigues 2006-06-10 19:02:13 +00:00
parent cbe2bd55ad
commit 490f186b62
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159488

View File

@ -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;