diff options
author | dfr <dfr@FreeBSD.org> | 2007-06-27 12:00:24 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2007-06-27 12:00:24 +0000 |
commit | 636717a46fdae118990778e62f2c61676ed89745 (patch) | |
tree | a6de72cd2e3d4d0ae7c1e52a2bfe4a50b35c8fcd | |
parent | f1e459f03dcc13e62733c3de982b4c1f93b9c395 (diff) | |
download | FreeBSD-src-636717a46fdae118990778e62f2c61676ed89745.zip FreeBSD-src-636717a46fdae118990778e62f2c61676ed89745.tar.gz |
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
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c | 2 | ||||
-rw-r--r-- | sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c index d0d4600..259b77c 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c @@ -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 diff --git a/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c b/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c index d0d4600..259b77c 100644 --- a/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c +++ b/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c @@ -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 |