dect
/
linux-2.6
Archived
13
0
Fork 0

logfs: testing the wrong variable

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>
This commit is contained in:
Dan Carpenter 2010-04-21 12:33:54 +02:00 committed by Joern Engel
parent 79dba2eaa7
commit 3272c8a57b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}