Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61212
b: refs/heads/master
c: c4e90ec
h: refs/heads/master
v: v3
  • Loading branch information
Florin Malita authored and Artem Bityutskiy committed Jul 18, 2007
1 parent 0dd0a67 commit 77e6ca3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 341e1a0cf2d8965c8b2f7941a6b2f2c2170df469
refs/heads/master: c4e90ec0134d7bedebbe3fe58ed5d431293886d4
11 changes: 5 additions & 6 deletions trunk/drivers/mtd/ubi/vtbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,13 @@ static int create_vtbl(const struct ubi_device *ubi, struct ubi_scan_info *si,
return err;

write_error:
kfree(new_seb);
/* May be this physical eraseblock went bad, try to pick another one */
if (++tries <= 5) {
/* Maybe this physical eraseblock went bad, try to pick another one */
if (++tries <= 5)
err = ubi_scan_add_to_list(si, new_seb->pnum, new_seb->ec,
&si->corr);
if (!err)
goto retry;
}
kfree(new_seb);
if (!err)
goto retry;
out_free:
ubi_free_vid_hdr(ubi, vid_hdr);
return err;
Expand Down

0 comments on commit 77e6ca3

Please sign in to comment.