The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=048cd371f3d793fa354f1d3a1d484bc2725a3fc1

commit 048cd371f3d793fa354f1d3a1d484bc2725a3fc1
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2021-07-23 16:04:02 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2021-07-23 16:04:02 +0000

    vfs: Initialize "lastfail" in vfs_mountroot_wait()
    
    This variable is only used to rate-limit "Root mount waiting for: ..."
    messages using ppsratecheck().
    
    Reported by:    KMSAN
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
---
 sys/kern/vfs_mountroot.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c
index 48753b8c6a96..e2a687511e11 100644
--- a/sys/kern/vfs_mountroot.c
+++ b/sys/kern/vfs_mountroot.c
@@ -983,6 +983,7 @@ vfs_mountroot_wait(void)
        TSENTER();
 
        curfail = 0;
+       lastfail.tv_sec = 0;
        while (1) {
                g_waitidle();
                mtx_lock(&root_holds_mtx);
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to