git: 2b2d77e7204d - main - VOP_STAT: Provide a default value for va_gen
Mark Johnston
markj at FreeBSD.org
Mon May 3 17:55:40 UTC 2021
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=2b2d77e7204d2264dbe0338f4400f14702a2c582
commit 2b2d77e7204d2264dbe0338f4400f14702a2c582
Author: Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-05-03 16:43:05 +0000
Commit: Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-05-03 17:24:30 +0000
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
---
sys/kern/vfs_default.c | 1 +
1 file changed, 1 insertion(+)
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);
More information about the dev-commits-src-main
mailing list