diff options
author | David Howells <dhowells@redhat.com> | 2019-03-21 13:08:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-07 19:55:13 +0300 |
commit | fca236097d7ada9a42bf0f7f30618eb1b0e10929 (patch) | |
tree | 139212d66e875f07e340a80bb3ebab357b666c5b /usr | |
parent | 1a63ec5f8ff2d5f5b5be7d05a23544854a326de4 (diff) | |
download | linux-fca236097d7ada9a42bf0f7f30618eb1b0e10929.tar.xz |
hypfs: Fix error number left in struct pointer member
[ Upstream commit b54c64f7adeb241423cd46598f458b5486b0375e ]
In hypfs_fill_super(), if hypfs_create_update_file() fails,
sbi->update_file is left holding an error number. This is passed to
hypfs_kill_super() which doesn't check for this.
Fix this by not setting sbi->update_value until after we've checked for
error.
Fixes: 24bbb1faf3f0 ("[PATCH] s390_hypfs filesystem")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
cc: Heiko Carstens <heiko.carstens@de.ibm.com>
cc: linux-s390@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions