projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60cc43f
)
hypfs_kill_super(): deal with failed allocations
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 3 Apr 2018 03:50:31 +0000
(23:50 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 16 Apr 2018 03:48:04 +0000
(23:48 -0400)
hypfs_fill_super() might fail to allocate sbi; hypfs_kill_super()
should not oops on that.
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/s390/hypfs/inode.c
patch
|
blob
|
history
diff --git
a/arch/s390/hypfs/inode.c
b/arch/s390/hypfs/inode.c
index
43bbe63
..
06b513d
100644
(file)
--- a/
arch/s390/hypfs/inode.c
+++ b/
arch/s390/hypfs/inode.c
@@
-320,7
+320,7
@@
static void hypfs_kill_super(struct super_block *sb)
if (sb->s_root)
hypfs_delete_tree(sb->s_root);
- if (sb_info->update_file)
+ if (sb_info
&& sb_info
->update_file)
hypfs_remove(sb_info->update_file);
kfree(sb->s_fs_info);
sb->s_fs_info = NULL;