From: Theodore Ts'o Date: Thu, 21 Jan 2021 20:20:45 +0000 (-0500) Subject: libext2fs: fix incorrect negative error return in ext2fs_rw_bitmaps() X-Git-Tag: v1.46.0~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecbe47df0456337e830a05e2527524fde2661ab3;p=thirdparty%2Fe2fsprogs.git 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 --- 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);