f2fs: Fix uninitialized return in f2fs_ioc_shutdown()
commit2a96d8ad94ce57cb0072f7a660b1039720c47716
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 20 Jun 2018 10:39:53 +0000 (20 13:39 +0300)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 27 Jul 2018 09:03:59 +0000 (27 18:03 +0900)
treec825d3b2b72c5c7d9bea0ea0b2777ced086c3754
parent5a6154920faf9d3d5a39de1da49c66af9831d270
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