projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c66b23c
)
orangefs_kill_sb(): deal with allocation failures
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 3 Apr 2018 04:13:17 +0000
(
00:13
-0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 16 Apr 2018 03:49:12 +0000
(23:49 -0400)
orangefs_fill_sb() might've failed to allocate ORANGEFS_SB(s); don't
oops in that case.
Cc: stable@kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/orangefs/super.c
patch
|
blob
|
history
diff --git
a/fs/orangefs/super.c
b/fs/orangefs/super.c
index
3ae5fdb
..
10796d3
100644
(file)
--- a/
fs/orangefs/super.c
+++ b/
fs/orangefs/super.c
@@
-579,6
+579,11
@@
void orangefs_kill_sb(struct super_block *sb)
/* provided sb cleanup */
kill_anon_super(sb);
+ if (!ORANGEFS_SB(sb)) {
+ mutex_lock(&orangefs_request_mutex);
+ mutex_unlock(&orangefs_request_mutex);
+ return;
+ }
/*
* issue the unmount to userspace to tell it to remove the
* dynamic mount info it has for this superblock