Skip to content

Commit 3272c8a

Browse files
error27Joern Engel
authored andcommitted
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>
1 parent 79dba2e commit 3272c8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/logfs/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ static struct page *find_super_block(struct super_block *sb)
382382
if (!first || IS_ERR(first))
383383
return NULL;
384384
last = super->s_devops->find_last_sb(sb, &super->s_sb_ofs[1]);
385-
if (!last || IS_ERR(first)) {
385+
if (!last || IS_ERR(last)) {
386386
page_cache_release(first);
387387
return NULL;
388388
}

0 commit comments

Comments
 (0)