Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116023
b: refs/heads/master
c: 63fd7f3
h: refs/heads/master
i:
  116021: d955838
  116019: ad17a8c
  116015: 5b237f7
v: v3
  • Loading branch information
Daniel Rosenthal authored and David Woodhouse committed Oct 8, 2008
1 parent c026f46 commit 260f747
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f324277cf70ad284dd99acf5ac5101e32bc8c55b
refs/heads/master: 63fd7f30f328f99956d3c774d17219c3c8d54131
5 changes: 4 additions & 1 deletion trunk/drivers/mtd/inftlcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ static u16 INFTL_foldchain(struct INFTLrecord *inftl, unsigned thisVUC, unsigned
if (thisEUN == targetEUN)
break;

/* Unlink the last block from the chain. */
inftl->PUtable[prevEUN] = BLOCK_NIL;

/* Now try to erase it. */
if (INFTL_formatblock(inftl, thisEUN) < 0) {
/*
* Could not erase : mark block as reserved.
Expand All @@ -396,7 +400,6 @@ static u16 INFTL_foldchain(struct INFTLrecord *inftl, unsigned thisVUC, unsigned
} else {
/* Correctly erased : mark it as free */
inftl->PUtable[thisEUN] = BLOCK_FREE;
inftl->PUtable[prevEUN] = BLOCK_NIL;
inftl->numfreeEUNs++;
}
}
Expand Down

0 comments on commit 260f747

Please sign in to comment.