projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79dba2e
)
logfs: testing the wrong variable
author
Dan Carpenter
<error27@gmail.com>
Wed, 21 Apr 2010 10:33:54 +0000
(12:33 +0200)
committer
Joern Engel
<joern@logfs.org>
Thu, 29 Apr 2010 13:19:27 +0000
(15:19 +0200)
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>
fs/logfs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/logfs/super.c
b/fs/logfs/super.c
index 5866ee6e13278ce873a4771966b5285e0b81db44..7fc4625c6f02bbe7849c4bdbba604765b4a4c93a 100644
(file)
--- a/
fs/logfs/super.c
+++ b/
fs/logfs/super.c
@@
-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(
fir
st)) {
+ if (!last || IS_ERR(
la
st)) {
page_cache_release(first);
return NULL;
}