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:
Pawel Jakub Dawidek 2009-09-26 00:08:44 +00:00
parent a99aaff645
commit a0b238644a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197514

View file

@ -898,6 +898,8 @@ zfsctl_snapdir_lookup(ap)
}
mutex_exit(&sdp->sd_lock);
ZFS_EXIT(zfsvfs);
if (err != 0)
*vpp = NULL;
return (err);
}