Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2022 15:46:54 GMT
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 565337126942 - stable/13 - Fix an incorrectly placed parenthesis.
Message-ID:  <202210131546.29DFksRS023280@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mckusick:

URL: https://cgit.FreeBSD.org/src/commit/?id=565337126942ecb9ac324023f9f3cfa0f217b3e0

commit 565337126942ecb9ac324023f9f3cfa0f217b3e0
Author:     Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2022-09-29 08:44:34 +0000
Commit:     Kirk McKusick <mckusick@FreeBSD.org>
CommitDate: 2022-10-13 15:45:56 +0000

    Fix an incorrectly placed parenthesis.
    
    Sponsored by: The FreeBSD Foundation
    
    (cherry picked from commit 221da3e9212d4cc1e370721493922de232fe3918)
---
 sys/ufs/ffs/ffs_snapshot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c
index 7cac1ec694a0..89301576f48a 100644
--- a/sys/ufs/ffs/ffs_snapshot.c
+++ b/sys/ufs/ffs/ffs_snapshot.c
@@ -689,7 +689,7 @@ loop:
 		*blkp++ = lblkno(fs, fs->fs_sblockloc);
 		blkno = fragstoblks(fs, fs->fs_csaddr);
 		for (cg = 0; cg < fs->fs_ncg; cg++) {
-			if (fragstoblks(fs, cgtod(fs, cg) > blkno))
+			if (fragstoblks(fs, cgtod(fs, cg)) > blkno)
 				break;
 			*blkp++ = fragstoblks(fs, cgtod(fs, cg));
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210131546.29DFksRS023280>