]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: (xfs) fix typo in operators [coverity scan]
authorKarel Zak <kzak@redhat.com>
Mon, 3 Oct 2022 09:05:39 +0000 (11:05 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Oct 2022 09:06:31 +0000 (11:06 +0200)
Addresses: https://github.com/util-linux/util-linux/pull/1804
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/xfs.c

index b26b960d277fed84fa487bafb469000df2d938bb..4f80c5c9689161e6bc6b5919dd8f234cb6f1ccf6 100644 (file)
@@ -208,9 +208,9 @@ static int xfs_verify_sb(struct xfs_super_block *ondisk, blkid_probe pr,
                uint32_t expected, crc;
                unsigned char *csummed;
 
-               if (!(sbp->sb_versionnum | XFS_SB_VERSION_MOREBITSBIT))
+               if (!(sbp->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT))
                        return 0;
-               if (!(sbp->sb_features2 | XFS_SB_VERSION2_CRCBIT))
+               if (!(sbp->sb_features2 & XFS_SB_VERSION2_CRCBIT))
                        return 0;
 
                expected = sbp->sb_crc;