In zfs_vget, if we fail to translate an inode number to the corresponding

vnode, make sure we return an error code to the caller.

Reviewed by: pjd
Approved by: re
This commit is contained in:
Doug Rabson 2007-06-27 12:00:24 +00:00
parent 17ca0f3c6c
commit 7761242694
2 changed files with 2 additions and 2 deletions

View File

@ -766,7 +766,7 @@ zfs_vget(vfs_t *vfsp, ino_t ino, int flags, vnode_t **vpp)
vn_lock(*vpp, flags, curthread);
}
ZFS_EXIT(zfsvfs);
return (0);
return (err);
}
static int

View File

@ -766,7 +766,7 @@ zfs_vget(vfs_t *vfsp, ino_t ino, int flags, vnode_t **vpp)
vn_lock(*vpp, flags, curthread);
}
ZFS_EXIT(zfsvfs);
return (0);
return (err);
}
static int