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:
parent
17ca0f3c6c
commit
7761242694
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171063
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user