projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f843980
)
fs/romfs: correct error-handling code
author
Julia Lawall
<julia@diku.dk>
Tue, 28 Jul 2009 15:54:58 +0000
(17:54 +0200)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 24 Sep 2009 11:47:37 +0000
(07:47 -0400)
romfs_fill_super() assumes that romfs_iget() returns NULL when
it fails. romfs_iget() actually returns ERR_PTR(-ve) in that
case...
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/romfs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/romfs/super.c
b/fs/romfs/super.c
index 47f132df0c3f0a630673831c2b862ce96ac72968..c117fa80d1e9b9ddc9be29a7d412022b9d158010 100644
(file)
--- a/
fs/romfs/super.c
+++ b/
fs/romfs/super.c
@@
-528,7
+528,7
@@
static int romfs_fill_super(struct super_block *sb, void *data, int silent)
pos = (ROMFH_SIZE + len + 1 + ROMFH_PAD) & ROMFH_MASK;
root = romfs_iget(sb, pos);
- if (
!root
)
+ if (
IS_ERR(root)
)
goto error;
sb->s_root = d_alloc_root(root);