]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Merge branch 'fix-jfs' of https://github.com/mbroz/util-linux
authorKarel Zak <kzak@redhat.com>
Mon, 5 Jun 2023 09:46:11 +0000 (11:46 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Jun 2023 09:46:11 +0000 (11:46 +0200)
* 'fix-jfs' of https://github.com/mbroz/util-linux:
  libblkid: jfs - avoid undefined shift

libblkid/src/superblocks/jfs.c

index 1b545c7d5077bae892fff1b7df542535df033314..7b75ecb6b57520210ac544c534125781781df123 100644 (file)
@@ -41,7 +41,7 @@ static int probe_jfs(blkid_probe pr, const struct blkid_idmag *mag)
        js = blkid_probe_get_sb(pr, mag, struct jfs_super_block);
        if (!js)
                return errno ? -errno : 1;
-       if (le16_to_cpu(js->js_l2bsize) > 32 || le16_to_cpu(js->js_l2pbsize) > 32)
+       if (le16_to_cpu(js->js_l2bsize) > 31 || le16_to_cpu(js->js_l2pbsize) > 31)
                return 1;
        if (le32_to_cpu(js->js_bsize) != (1U << le16_to_cpu(js->js_l2bsize)))
                return 1;