Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213008
b: refs/heads/master
c: 0e54c89
h: refs/heads/master
v: v3
  • Loading branch information
Vasiliy Kulikov authored and Artem Bityutskiy committed Sep 7, 2010
1 parent 7c21922 commit 1a7dcc9
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 3a8fa0ed3e1a8dc54f9297d2a2292b87e03e21b5
refs/heads/master: 0e54c8992a35ab8126e8a7661007ddc1745a2597
7 changes: 6 additions & 1 deletion trunk/fs/ubifs/lpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1363,14 +1363,19 @@ static int read_lsave(struct ubifs_info *c)
goto out;
for (i = 0; i < c->lsave_cnt; i++) {
int lnum = c->lsave[i];
struct ubifs_lprops *lprops;

/*
* Due to automatic resizing, the values in the lsave table
* could be beyond the volume size - just ignore them.
*/
if (lnum >= c->leb_cnt)
continue;
ubifs_lpt_lookup(c, lnum);
lprops = ubifs_lpt_lookup(c, lnum);
if (IS_ERR(lprops)) {
err = PTR_ERR(lprops);
goto out;
}
}
out:
vfree(buf);
Expand Down

0 comments on commit 1a7dcc9

Please sign in to comment.