From: Dan Carpenter Date: Wed, 21 Apr 2010 10:33:54 +0000 (+0200) Subject: logfs: testing the wrong variable X-Git-Tag: upstream/snapshot3+hdmi~14625^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3272c8a57b77a7277a740e211fe12171e4b37e99;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git logfs: testing the wrong variable There is a typo here. We should test "last" instead of "first". Signed-off-by: Dan Carpenter Signed-off-by: Joern Engel --- diff --git a/fs/logfs/super.c b/fs/logfs/super.c index 5866ee6..7fc4625 100644 --- a/fs/logfs/super.c +++ b/fs/logfs/super.c @@ -382,7 +382,7 @@ static struct page *find_super_block(struct super_block *sb) if (!first || IS_ERR(first)) return NULL; last = super->s_devops->find_last_sb(sb, &super->s_sb_ofs[1]); - if (!last || IS_ERR(first)) { + if (!last || IS_ERR(last)) { page_cache_release(first); return NULL; }