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 <[email protected]>
---
 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;
                }
        }
 
-- 
2.12.0



--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to