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:
8968289
)
libext2fs: fix incorrect negative error return in ext2fs_rw_bitmaps()
author
Theodore Ts'o
<tytso@mit.edu>
Thu, 21 Jan 2021 20:20:45 +0000
(15:20 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 21 Jan 2021 20:20:45 +0000
(15:20 -0500)
Fixes:
e2e58d312804
("ext2fs: parallel bitmap loading")
Fixes-Coverity-Bug: 147255
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/rw_bitmaps.c
patch
|
blob
|
history
diff --git
a/lib/ext2fs/rw_bitmaps.c
b/lib/ext2fs/rw_bitmaps.c
index
7e4f7c6
..
e3be4b8
100644
(file)
--- a/
lib/ext2fs/rw_bitmaps.c
+++ b/
lib/ext2fs/rw_bitmaps.c
@@
-576,7
+576,7
@@
errcode_t ext2fs_rw_bitmaps(ext2_filsys fs, int flags, int num_threads)
thread_ids = calloc(sizeof(pthread_t), num_threads);
if (!thread_ids)
- return
-
ENOMEM;
+ return ENOMEM;
thread_infos = calloc(sizeof(struct read_bitmaps_thread_info),
num_threads);