mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
On lookup error VFS expects *vpp to be set to NULL, be sure to do that.
MFC after: 3 days
This commit is contained in:
parent
a99aaff645
commit
a0b238644a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197514
|
@ -898,6 +898,8 @@ zfsctl_snapdir_lookup(ap)
|
|||
}
|
||||
mutex_exit(&sdp->sd_lock);
|
||||
ZFS_EXIT(zfsvfs);
|
||||
if (err != 0)
|
||||
*vpp = NULL;
|
||||
return (err);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue