android_kernel_samsung_a7y1.../arch/s390/hypfs
David Howells 9cd2a09998 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>
2020-04-07 07:55:11 +02:00
..
hypfs_dbfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hypfs_diag.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hypfs_diag0c.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hypfs_sprp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hypfs_vm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hypfs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inode.c hypfs: Fix error number left in struct pointer member 2020-04-07 07:55:11 +02:00
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30