Commit bc8d98713f10582f4e35b9208f1b967c6a9f9953

Authored by Egbert Eich
Committed by Tom Rini
1 parent d7ea4d4d4c

fs/fat: Don't multiply fatsize with sector size

Bugfix:
Here at this place we need the fat size in sectors not bytes.
This was found during code review when adding support for storage
devices with blocksizes != 512.

Signed-off-by: Egbert Eich <eich@suse.com>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

... ... @@ -120,7 +120,6 @@
120 120 __u8 *bufptr = mydata->fatbuf;
121 121 __u32 startblock = mydata->fatbufnum * FATBUFBLOCKS;
122 122  
123   - fatlength *= mydata->sect_size;
124 123 startblock += mydata->fat_sect;
125 124  
126 125 if (getsize > fatlength)