From: Jindrich Makovicka Date: Sun, 24 Jul 2011 12:13:07 +0000 (+0200) Subject: libblkid: vfat big endian fix X-Git-Tag: v2.20-rc1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=244bf8587c3a1cb6282d5f4c7afbcb07cc953fcf;p=thirdparty%2Futil-linux.git libblkid: vfat big endian fix when getting the next cluster id, clear the 4 most significant bits after converting to machine endian Signed-off-by: Jindrich Makovicka --- diff --git a/libblkid/src/superblocks/vfat.c b/libblkid/src/superblocks/vfat.c index ab036f45d7..bf474630d7 100644 --- a/libblkid/src/superblocks/vfat.c +++ b/libblkid/src/superblocks/vfat.c @@ -356,7 +356,7 @@ static int probe_vfat(blkid_probe pr, const struct blkid_idmag *mag) break; /* set next cluster */ - next = le32_to_cpu(*((uint32_t *) buf) & 0x0fffffff); + next = le32_to_cpu(*((uint32_t *) buf)) & 0x0fffffff; } version = "FAT32";