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

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;