summaryrefslogtreecommitdiffstats
path: root/arch/s390/hypfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-04-03 05:50:31 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2018-04-16 05:48:04 +0200
commita24cd490739586a7d2da3549a1844e1d7c4f4fc4 (patch)
tree3535b63a3aa96cb2490467bb8d6e4a8259890ed5 /arch/s390/hypfs
parentLinux 4.17-rc1 (diff)
downloadlinux-a24cd490739586a7d2da3549a1844e1d7c4f4fc4.tar.xz
linux-a24cd490739586a7d2da3549a1844e1d7c4f4fc4.zip
hypfs_kill_super(): deal with failed allocations
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>
Diffstat (limited to 'arch/s390/hypfs')
-rw-r--r--arch/s390/hypfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c
index 43bbe63e2992..06b513d192b9 100644
--- 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;