Commit 3272c8a5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Joern Engel

logfs: testing the wrong variable

There is a typo here.  We should test "last" instead of "first".
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJoern Engel <joern@logfs.org>
parent 79dba2ea
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment