From ecbe47df0456337e830a05e2527524fde2661ab3 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 21 Jan 2021 15:20:45 -0500 Subject: [PATCH] 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 --- lib/ext2fs/rw_bitmaps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2