提交 bc8d9871 编写于 作者: E Egbert Eich 提交者: Tom Rini

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: NEgbert Eich <eich@suse.com>
上级 d7ea4d4d
......@@ -120,7 +120,6 @@ static int flush_fat_buffer(fsdata *mydata)
__u8 *bufptr = mydata->fatbuf;
__u32 startblock = mydata->fatbufnum * FATBUFBLOCKS;
fatlength *= mydata->sect_size;
startblock += mydata->fat_sect;
if (getsize > fatlength)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册