summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2018-05-25 21:02:23 +0200
committerKarel Zak2018-05-25 21:02:23 +0200
commit3abbd0814cf479f709a2da5822a215db69c5a6d0 (patch)
treec8860340987597211d30dffa021e02131f273d83
parentlibblkid: (ntfs) enlarge cluster limit to 2MB (diff)
downloadkernel-qcow2-util-linux-3abbd0814cf479f709a2da5822a215db69c5a6d0.tar.gz
kernel-qcow2-util-linux-3abbd0814cf479f709a2da5822a215db69c5a6d0.tar.xz
kernel-qcow2-util-linux-3abbd0814cf479f709a2da5822a215db69c5a6d0.zip
libblkid: (ntfs) fix cluster size check
Addresses: https://github.com/karelzak/util-linux/issues/641 Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--libblkid/src/superblocks/ntfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/superblocks/ntfs.c b/libblkid/src/superblocks/ntfs.c
index 723d27503..32973095b 100644
--- a/libblkid/src/superblocks/ntfs.c
+++ b/libblkid/src/superblocks/ntfs.c
@@ -114,7 +114,7 @@ static int probe_ntfs(blkid_probe pr, const struct blkid_idmag *mag)
}
if ((uint16_t) le16_to_cpu(ns->bpb.sector_size) *
- ns->bpb.sectors_per_cluster > NTFS_MAX_CLUSTER_SIZE)
+ sectors_per_cluster > NTFS_MAX_CLUSTER_SIZE)
return 1;
/* Unused fields must be zero */