forked from len0rd/rockbox
fat_cache_sector() wrote to the wrong sector when flushing an entry. Thanks to Greg Haerr for finding the bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2813 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8cff523ac1
commit
81449d9642
1 changed files with 2 additions and 1 deletions
|
|
@ -400,7 +400,8 @@ static void *cache_fat_sector(int fatsector)
|
|||
/* Write back if it is dirty */
|
||||
if(fat_cache[cache_index].dirty)
|
||||
{
|
||||
if(ata_write_sectors(secnum + fat_bpb.startsector, 1,
|
||||
if(ata_write_sectors(fat_cache[cache_index].secnum +
|
||||
fat_bpb.startsector, 1,
|
||||
fat_cache_sectors[cache_index]))
|
||||
{
|
||||
panicf("cache_fat_sector() - Could not write sector %d\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue