diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 2ffe2c14ef2..9a1c7831b93 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -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);