projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11b8ec4
)
btrfs-progs: convert: Add missing return for HOLE mode when checking convert image
author
Qu Wenruo
<quwenruo@cn.fujitsu.com>
Tue, 21 Mar 2017 01:00:55 +0000
(09:00 +0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/convert/main.c
b/convert/main.c
index
96358c6
..
c56382e
100644
(file)
--- 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;
}
}