Initialize vp, so we don't call VOP_UNLOCK() with NULL vnode pointer.

Confirmed by:	marcus
This commit is contained in:
Pawel Jakub Dawidek 2008-09-07 07:55:12 +00:00
parent 7480311f87
commit 1b856fa491

View File

@ -628,7 +628,8 @@ zfs_zget(zfsvfs_t *zfsvfs, uint64_t obj_num, znode_t **zpp)
zfs_znode_dmu_init(zp);
ZFS_OBJ_HOLD_EXIT(zfsvfs, obj_num);
*zpp = zp;
VOP_UNLOCK(vp, 0);
if ((vp = ZTOV(zp)) != NULL)
VOP_UNLOCK(vp, 0);
return (0);
}