Skip to content

Commit

Permalink
logfs: testing the wrong variable
Browse files Browse the repository at this point in the history
There is a typo here.  We should test "last" instead of "first".

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Joern Engel <joern@logfs.org>
  • Loading branch information
Dan Carpenter authored and Joern Engel committed Apr 29, 2010
1 parent 79dba2e commit 3272c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/logfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3272c8a

Please sign in to comment.