external/exfat
Revision | 2f6a54823b8069e9f02b5ece1e6b77307f808283 (tree) |
---|---|
Time | 2017-05-03 02:19:57 |
Author | relan <relan@user...> |
Commiter | relan |
Fix clusters bitmap size.
The last two clusters were erroneously considered invalid. Note that
clusters numbering starts with 2.
@@ -469,8 +469,7 @@ static int readdir(struct exfat* ef, struct exfat_node* parent, | ||
469 | 469 | ef->cmap.start_cluster); |
470 | 470 | return -EIO; |
471 | 471 | } |
472 | - ef->cmap.size = le32_to_cpu(ef->sb->cluster_count) - | |
473 | - EXFAT_FIRST_DATA_CLUSTER; | |
472 | + ef->cmap.size = le32_to_cpu(ef->sb->cluster_count); | |
474 | 473 | if (le64_to_cpu(bitmap->size) < DIV_ROUND_UP(ef->cmap.size, 8)) |
475 | 474 | { |
476 | 475 | exfat_error("invalid clusters bitmap size: %"PRIu64 |