Files
u-boot/include
Wu, Josh 2e98f70882 fs: fat_write: fix the incorrect last cluster checking
In fat_write.c, the last clust condition check is incorrect:

  if ((curclust >= 0xffffff8) || (curclust >= 0xfff8)) {
  	... ...
  }

For example, in FAT32 if curclust is 0x11000. It is a valid clust.
But on above condition check, it will be think as a last clust.

So the correct last clust check should be:
  in fat32, curclust >= 0xffffff8
  in fat16, curclust >= 0xfff8
  in fat12, curclust >= 0xff8

This patch correct the last clust check.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
2014-05-12 16:31:50 -04:00
..
2014-03-04 12:15:29 -05:00
2014-04-17 14:38:30 -04:00
2014-02-04 16:32:20 +01:00
2014-02-21 08:42:47 -05:00
2014-03-17 20:05:48 -06:00
2014-03-04 12:15:29 -05:00
2014-05-09 11:50:14 +02:00
2014-03-21 16:39:36 -04:00
2014-02-20 06:48:23 +01:00
2013-09-24 09:10:33 -04:00
2014-05-09 11:50:14 +02:00
2014-03-17 20:05:49 -06:00
2013-09-20 10:30:54 -04:00
2014-05-05 08:00:28 +02:00
2013-11-09 17:21:01 +01:00
2014-04-20 13:16:43 +02:00
2014-03-17 20:05:49 -06:00
2014-05-05 08:00:28 +02:00
2013-11-09 17:21:01 +01:00
2014-03-05 12:23:48 +01:00
2014-03-21 16:39:35 -04:00
2014-02-19 10:47:43 -05:00
2013-12-04 08:11:28 -05:00
2013-08-28 11:44:59 -04:00