projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60f1c1f
)
sget(): handle failures of register_shrinker()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 18 Dec 2017 20:05:07 +0000
(15:05 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 3 Mar 2018 09:24:24 +0000
(10:24 +0100)
[ Upstream commit
9ee332d99e4d5a97548943b81c54668450ce641b
]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/super.c
b/fs/super.c
index 994db21f59bf58d3f83d750f8524d1c35849706b..79d7fc5e0ddd812e3668267e6493e318405be46e 100644
(file)
--- a/
fs/super.c
+++ b/
fs/super.c
@@
-522,7
+522,11
@@
retry:
hlist_add_head(&s->s_instances, &type->fs_supers);
spin_unlock(&sb_lock);
get_filesystem(type);
- register_shrinker(&s->s_shrink);
+ err = register_shrinker(&s->s_shrink);
+ if (err) {
+ deactivate_locked_super(s);
+ s = ERR_PTR(err);
+ }
return s;
}