projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a61549
)
f2fs: Fix uninitialized return in f2fs_ioc_shutdown()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 20 Jun 2018 10:39:53 +0000
(13:39 +0300)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 27 Jul 2018 09:03:59 +0000
(18:03 +0900)
"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
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index 8af6683e022be737b01f21289b61fa716427d164..eed8aef51dad6ac384fe7ad8f957f3a1bd4642eb 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-1866,7
+1866,7
@@
static int f2fs_ioc_shutdown(struct file *filp, unsigned long arg)
struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
struct super_block *sb = sbi->sb;
__u32 in;
- int ret;
+ int ret
= 0
;
if (!capable(CAP_SYS_ADMIN))
return -EPERM;