projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3850aba
)
exofs: oops after late failure in mount
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 9 Jan 2012 00:45:28 +0000
(19:45 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 9 Jan 2012 01:19:12 +0000
(20:19 -0500)
We have already set ->s_root, so ->put_super() is going to be called.
Freeing ->s_fs_info is a bloody bad idea when it's going to be
dereferenced very shortly...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/exofs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/exofs/super.c
b/fs/exofs/super.c
index 8addfe314dc7cc386948d6fac8dc8f8210a61a7a..d22cd168c6ee9738ed554474e7a9995e94df8059 100644
(file)
--- a/
fs/exofs/super.c
+++ b/
fs/exofs/super.c
@@
-838,6
+838,8
@@
static int exofs_fill_super(struct super_block *sb, void *data, int silent)
ret = bdi_setup_and_register(&sbi->bdi, "exofs", BDI_CAP_MAP_COPY);
if (ret) {
EXOFS_DBGMSG("Failed to bdi_setup_and_register\n");
+ dput(sb->s_root);
+ sb->s_root = NULL;
goto free_sbi;
}