Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd9ac48
)
libext2fs: fix incorrect error code return in ext2fs_add_jounral_inode3()
author
Theodore Ts'o
<tytso@mit.edu>
Fri, 12 Feb 2021 20:10:11 +0000
(15:10 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 12 Feb 2021 20:10:11 +0000
(15:10 -0500)
Addresses-Coverity-Bug: 1472255
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/mkjournal.c
patch
|
blob
|
history
diff --git
a/lib/ext2fs/mkjournal.c
b/lib/ext2fs/mkjournal.c
index
732ba7d
..
bc8c57b
100644
(file)
--- a/
lib/ext2fs/mkjournal.c
+++ b/
lib/ext2fs/mkjournal.c
@@
-524,7
+524,7
@@
errcode_t ext2fs_add_journal_inode3(ext2_filsys fs, struct ext2fs_journal_params
retval = ioctl(fd, EXT2_IOC_SETFLAGS, &f);
close(fd);
if (retval)
- return
retval
;
+ return
errno
;
}
#endif
#endif