From 1a7dcc94e3c53d54e1566a3c23f4fc3a7238d500 Mon Sep 17 00:00:00 2001 From: Vasiliy Kulikov Date: Sun, 5 Sep 2010 22:33:00 +0400 Subject: [PATCH] --- yaml --- r: 213008 b: refs/heads/master c: 0e54c8992a35ab8126e8a7661007ddc1745a2597 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ubifs/lpt.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index ed652ba337df..497920e4d125 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3a8fa0ed3e1a8dc54f9297d2a2292b87e03e21b5 +refs/heads/master: 0e54c8992a35ab8126e8a7661007ddc1745a2597 diff --git a/trunk/fs/ubifs/lpt.c b/trunk/fs/ubifs/lpt.c index 0084a33c4c69..72775d35b99e 100644 --- a/trunk/fs/ubifs/lpt.c +++ b/trunk/fs/ubifs/lpt.c @@ -1363,6 +1363,7 @@ 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 @@ -1370,7 +1371,11 @@ static int read_lsave(struct ubifs_info *c) */ 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);