Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-01-02 18:49:48 +00:00
parent fa81223743
commit b961dc3193

View File

@ -374,7 +374,7 @@ kern_fstatfs(struct thread *td, int fd, struct statfs *buf)
AUDIT_ARG_VNODE1(vp);
#endif
mp = vp->v_mount;
if (mp)
if (mp != NULL)
vfs_ref(mp);
VOP_UNLOCK(vp, 0);
fdrop(fp, td);