f2fs: Fix uninitialized return in f2fs_ioc_shutdown()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 20 Jun 2018 10:39:53 +0000 (13:39 +0300)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Sep 2018 22:08:29 +0000 (15:08 -0700)
commit2c077ed3d901d6ed3e468639fd16ef911a250003
tree5326b9e946ee1031c6539eb30aa45d1f504cc8d0
parent0d71db20c3a31384762c0ea402b4e7d96a65ef2f
f2fs: Fix uninitialized return in f2fs_ioc_shutdown()

"ret" can be uninitialized on the success path when "in ==
F2FS_GOING_DOWN_FULLSYNC".

Fixes: 60b2b4ee2bc0 ("f2fs: Fix deadlock in shutdown ioctl")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c