From: Qu Wenruo Date: Tue, 21 Mar 2017 01:00:55 +0000 (+0800) Subject: btrfs-progs: convert: Add missing return for HOLE mode when checking convert image X-Git-Tag: upstream/4.16.1~687 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52bbb015e5a21743478024becb1c3dacea822adb;p=platform%2Fupstream%2Fbtrfs-progs.git 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 --- diff --git a/convert/main.c b/convert/main.c index 96358c6..c56382e 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; } }