From 52bbb015e5a21743478024becb1c3dacea822adb Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Tue, 21 Mar 2017 09:00:55 +0800 Subject: [PATCH] btrfs-progs: convert: Add missing return for HOLE mode when checking convert image In check_convert_image(), for normal HOLE case, if the file extents are smaller than image size, we set ret to -EINVAL and print error message. But forget to return. This patch adds the missing return to fix it. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- convert/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/convert/main.c b/convert/main.c index 96358c62..c56382e9 100644 --- a/convert/main.c +++ b/convert/main.c @@ -1559,6 +1559,7 @@ next: ret = -EINVAL; error("inode %llu has some file extents not checked", ino); + return ret; } }