Merge branch 'fix-jfs' of https://github.com/mbroz/util-linux
* 'fix-jfs' of https://github.com/mbroz/util-linux: libblkid: jfs - avoid undefined shift
This commit is contained in:
commit
7db2e6373b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue