public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] logfs: testing the wrong variable
@ 2010-04-21 10:33 Dan Carpenter
  2010-04-21 13:15 ` Jörn Engel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dan Carpenter @ 2010-04-21 10:33 UTC (permalink / raw)
  To: kernel-janitors

There is a typo here.  We should test "last" instead of "first".

Signed-off-by: Dan Carpenter <error27@gmail.com>

diff --git a/fs/logfs/super.c b/fs/logfs/super.c
index b60bfac..1e0449e 100644
--- a/fs/logfs/super.c
+++ b/fs/logfs/super.c
@@ -377,7 +377,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;
 	}

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-22 11:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21 10:33 [patch] logfs: testing the wrong variable Dan Carpenter
2010-04-21 13:15 ` Jörn Engel
2010-04-22  9:22 ` Dan Carpenter
2010-04-22 11:58 ` Jörn Engel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox