Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
kib 2017-01-02 18:49:48 +00:00
parent 4287adb9b9
commit 9a7682de00

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);