diff options
author | Prasanth K S R <prasanth.ksr@dell.com> | 2016-12-10 19:17:43 +0530 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-14 15:06:36 +0100 |
commit | a2f7af94abe4a3491ca1280a2ae1d63edc0d62ab (patch) | |
tree | 6c02a81da1684a84dea61f64169ebb0d2e19c06f /send-utils.c | |
parent | adc1e90fb4d28f4873a3786db457ca9769c935a5 (diff) |
btrfs-progs: subvol_uuid_search: return error encoded pointer
This commit changes subvol_uuid_search() to return an error encoded
pointer on failure.
Signed-off-by: Prasanth K S R <prasanth.ksr@dell.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'send-utils.c')
-rw-r--r-- | send-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/send-utils.c b/send-utils.c index 5026882a..252ca6df 100644 --- a/send-utils.c +++ b/send-utils.c @@ -498,7 +498,7 @@ out: if (ret && info) { free(info->path); free(info); - info = NULL; + return ERR_PTR(ret); } return info; |