diff options
author | Dennis Gilmore <dennis@ausil.us> | 2014-10-14 00:38:28 -0500 |
---|---|---|
committer | Dennis Gilmore <dennis@ausil.us> | 2014-10-14 19:41:53 -0500 |
commit | 43a31dc85859cef2bc0b24ff2516d6fb069f4eec (patch) | |
tree | 46d6bc6c9b5dc04539b49637964f8a301259cb94 | |
parent | c43fd23cf619856b0763a64a6a3bcf3663058c49 (diff) | |
download | u-boot-43a31dc85859cef2bc0b24ff2516d6fb069f4eec.tar.gz u-boot-43a31dc85859cef2bc0b24ff2516d6fb069f4eec.tar.xz u-boot-43a31dc85859cef2bc0b24ff2516d6fb069f4eec.zip |
make sure that the filesystem is a type of fat
parted marks the partition table as being fat32 though we may pyt a fat16
filesystem on it.
-rw-r--r-- | fs/fat/fat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 561921fa2d..13a8acccb9 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -74,7 +74,7 @@ int fat_set_blk_dev(block_dev_desc_t *dev_desc, disk_partition_t *info) /* Check for FAT12/FAT16/FAT32 filesystem */ if (!memcmp(buffer + DOS_FS_TYPE_OFFSET, "FAT", 3)) return 0; - if (!memcmp(buffer + DOS_FS32_TYPE_OFFSET, "FAT32", 5)) + if (!memcmp(buffer + DOS_FS32_TYPE_OFFSET, "FAT", 3)) return 0; cur_dev = NULL; |