|
@@ -1363,6 +1363,7 @@ static int read_lsave(struct ubifs_info *c)
|
|
goto out;
|
|
goto out;
|
|
for (i = 0; i < c->lsave_cnt; i++) {
|
|
for (i = 0; i < c->lsave_cnt; i++) {
|
|
int lnum = c->lsave[i];
|
|
int lnum = c->lsave[i];
|
|
|
|
+ struct ubifs_lprops *lprops;
|
|
|
|
|
|
/*
|
|
/*
|
|
* Due to automatic resizing, the values in the lsave table
|
|
* Due to automatic resizing, the values in the lsave table
|
|
@@ -1370,7 +1371,11 @@ static int read_lsave(struct ubifs_info *c)
|
|
*/
|
|
*/
|
|
if (lnum >= c->leb_cnt)
|
|
if (lnum >= c->leb_cnt)
|
|
continue;
|
|
continue;
|
|
- ubifs_lpt_lookup(c, lnum);
|
|
|
|
|
|
+ lprops = ubifs_lpt_lookup(c, lnum);
|
|
|
|
+ if (IS_ERR(lprops)) {
|
|
|
|
+ err = PTR_ERR(lprops);
|
|
|
|
+ goto out;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
out:
|
|
out:
|
|
vfree(buf);
|
|
vfree(buf);
|