diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-04-02 23:50:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-24 09:29:28 +0200 |
commit | d44291735c573c645d2fba54a8eb80916e2f2c0e (patch) | |
tree | bf2fbdd3f8c8a9b3d5848883df6377b87cf52999 | |
parent | 2e05f940f55a73ff835a0b6ee7d4dfbeaf9a7375 (diff) | |
download | linux-stable-d44291735c573c645d2fba54a8eb80916e2f2c0e.tar.gz linux-stable-d44291735c573c645d2fba54a8eb80916e2f2c0e.tar.bz2 linux-stable-d44291735c573c645d2fba54a8eb80916e2f2c0e.zip |
hypfs_kill_super(): deal with failed allocations
commit a24cd490739586a7d2da3549a1844e1d7c4f4fc4 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | arch/s390/hypfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index c952b981e4f2..f7ace92bb1f6 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c @@ -326,7 +326,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; |