Commit 3272c8a57b77a7277a740e211fe12171e4b37e99

Authored by Dan Carpenter
Committed by Joern Engel
1 parent 79dba2eaa7

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -382,7 +382,7 @@
382 382 if (!first || IS_ERR(first))
383 383 return NULL;
384 384 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)) {
386 386 page_cache_release(first);
387 387 return NULL;
388 388 }