aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-05-03 16:43:05 +0000
committerMark Johnston <markj@FreeBSD.org>2021-05-03 17:24:30 +0000
commit2b2d77e7204d2264dbe0338f4400f14702a2c582 (patch)
treed010fc105429b75d8e1f3bb5adbf63fe008ad928
parentcdfcfc607acc10c8b1b2b6a427c9e1ed7e94ebb3 (diff)
downloadsrc-2b2d77e7204d2264dbe0338f4400f14702a2c582.tar.gz
src-2b2d77e7204d2264dbe0338f4400f14702a2c582.zip
VOP_STAT: Provide a default value for va_gen
Some filesystems, e.g., pseudofs and the NFSv3 client, do not provide one. Reviewed by: kib Reported by: KMSAN Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30091
-rw-r--r--sys/kern/vfs_default.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c
index 4b9b1b43f1ce..cf224981cbe7 100644
--- a/sys/kern/vfs_default.c
+++ b/sys/kern/vfs_default.c
@@ -1500,6 +1500,7 @@ vop_stdstat(struct vop_stat_args *a)
vap->va_birthtime.tv_sec = -1;
vap->va_birthtime.tv_nsec = 0;
vap->va_fsid = VNOVAL;
+ vap->va_gen = 0;
vap->va_rdev = NODEV;
error = VOP_GETATTR(vp, vap, a->a_active_cred);