diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /fs/ubifs/lpt.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'fs/ubifs/lpt.c')
-rw-r--r-- | fs/ubifs/lpt.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/fs/ubifs/lpt.c b/fs/ubifs/lpt.c index 0084a33c4c69..ef5155e109a2 100644 --- a/fs/ubifs/lpt.c +++ b/fs/ubifs/lpt.c | |||
@@ -1270,10 +1270,9 @@ static int read_pnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) | |||
1270 | lnum = branch->lnum; | 1270 | lnum = branch->lnum; |
1271 | offs = branch->offs; | 1271 | offs = branch->offs; |
1272 | pnode = kzalloc(sizeof(struct ubifs_pnode), GFP_NOFS); | 1272 | pnode = kzalloc(sizeof(struct ubifs_pnode), GFP_NOFS); |
1273 | if (!pnode) { | 1273 | if (!pnode) |
1274 | err = -ENOMEM; | 1274 | return -ENOMEM; |
1275 | goto out; | 1275 | |
1276 | } | ||
1277 | if (lnum == 0) { | 1276 | if (lnum == 0) { |
1278 | /* | 1277 | /* |
1279 | * This pnode was not written which just means that the LEB | 1278 | * This pnode was not written which just means that the LEB |
@@ -1363,6 +1362,7 @@ static int read_lsave(struct ubifs_info *c) | |||
1363 | goto out; | 1362 | goto out; |
1364 | for (i = 0; i < c->lsave_cnt; i++) { | 1363 | for (i = 0; i < c->lsave_cnt; i++) { |
1365 | int lnum = c->lsave[i]; | 1364 | int lnum = c->lsave[i]; |
1365 | struct ubifs_lprops *lprops; | ||
1366 | 1366 | ||
1367 | /* | 1367 | /* |
1368 | * Due to automatic resizing, the values in the lsave table | 1368 | * Due to automatic resizing, the values in the lsave table |
@@ -1370,7 +1370,11 @@ static int read_lsave(struct ubifs_info *c) | |||
1370 | */ | 1370 | */ |
1371 | if (lnum >= c->leb_cnt) | 1371 | if (lnum >= c->leb_cnt) |
1372 | continue; | 1372 | continue; |
1373 | ubifs_lpt_lookup(c, lnum); | 1373 | lprops = ubifs_lpt_lookup(c, lnum); |
1374 | if (IS_ERR(lprops)) { | ||
1375 | err = PTR_ERR(lprops); | ||
1376 | goto out; | ||
1377 | } | ||
1374 | } | 1378 | } |
1375 | out: | 1379 | out: |
1376 | vfree(buf); | 1380 | vfree(buf); |