aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2021-01-21 15:20:45 -0500
committerTheodore Ts'o <tytso@mit.edu>2021-01-21 15:20:45 -0500
commitecbe47df0456337e830a05e2527524fde2661ab3 (patch)
tree53d99dcf27fca6695a225104bb7ca3297a47e551
parent8968289b5178bacd5454fcbe4b1214afc28c7b26 (diff)
downloade2fsprogs-ecbe47df0456337e830a05e2527524fde2661ab3.tar.gz
libext2fs: fix incorrect negative error return in ext2fs_rw_bitmaps()
Fixes: e2e58d312804 ("ext2fs: parallel bitmap loading") Fixes-Coverity-Bug: 147255 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--lib/ext2fs/rw_bitmaps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/rw_bitmaps.c b/lib/ext2fs/rw_bitmaps.c
index 7e4f7c6aa..e3be4b894 100644
--- 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);