forked from pool/e2fsprogs
fdb4f77ffa
Rev filesystems/43 Md5 b21a390e126ab46304fa0d462302b24b 2013-02-25 18:21:48 jankara 156351
30 lines
965 B
Diff
30 lines
965 B
Diff
From 00a3c713fd9b910f23428178f5272ca7ca24f025 Mon Sep 17 00:00:00 2001
|
|
From: Jan Kara <jack@suse.cz>
|
|
Date: Mon, 25 Feb 2013 16:13:19 +0100
|
|
Subject: [PATCH 2/4] libext2fs: Fix return value in ext2fs_test_block_bitmap_range2()
|
|
|
|
We used return without a return value in
|
|
ext2fs_test_block_bitmap_range2() despite the fuction returns int.
|
|
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
---
|
|
lib/ext2fs/gen_bitmap64.c | 2 +-
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/lib/ext2fs/gen_bitmap64.c b/lib/ext2fs/gen_bitmap64.c
|
|
index 42a97d4..44ac499 100644
|
|
--- a/lib/ext2fs/gen_bitmap64.c
|
|
+++ b/lib/ext2fs/gen_bitmap64.c
|
|
@@ -658,7 +658,7 @@ int ext2fs_test_block_bitmap_range2(ext2fs_block_bitmap bmap,
|
|
if ((block < bmap->start) || (block+num-1 > bmap->end)) {
|
|
ext2fs_warn_bitmap(EXT2_ET_BAD_BLOCK_TEST, block,
|
|
bmap->description);
|
|
- return;
|
|
+ return EINVAL;
|
|
}
|
|
|
|
return bmap->bitmap_ops->test_clear_bmap_extent(bmap, block, num);
|
|
--
|
|
1.7.1
|
|
|