forked from len0rd/rockbox
Re-commit another small Nano2G FTL bugfix that got lost
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25146 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2cfd0f2e73
commit
4a6d160f75
1 changed files with 1 additions and 1 deletions
|
@ -1614,7 +1614,7 @@ uint32_t ftl_commit_cxt(void)
|
|||
uint32_t mappages = ((*ftl_nand_type).userblocks + 0x3ff) >> 10;
|
||||
uint32_t ctrpages = ((*ftl_nand_type).userblocks + 23 + 0x3ff) >> 10;
|
||||
uint32_t endpage = ftl_cxt.ftlctrlpage + mappages + ctrpages + 1;
|
||||
if (endpage % ppb > ppb - 1)
|
||||
if (endpage >= (ftl_cxt.ftlctrlpage / ppb + 1) * ppb)
|
||||
ftl_cxt.ftlctrlpage |= ppb - 1;
|
||||
for (i = 0; i < ctrpages; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue