btrfs-progs: convert: Add missing return for HOLE mode when checking convert image
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 21 Mar 2017 01:00:55 +0000 (09:00 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 31 Mar 2017 12:17:48 +0000 (14:17 +0200)
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 <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
convert/main.c

index 96358c6..c56382e 100644 (file)
@@ -1559,6 +1559,7 @@ next:
                        ret = -EINVAL;
                        error("inode %llu has some file extents not checked",
                                ino);
+                       return ret;
                }
        }