From a2f7af94abe4a3491ca1280a2ae1d63edc0d62ab Mon Sep 17 00:00:00 2001 From: Prasanth K S R Date: Sat, 10 Dec 2016 19:17:43 +0530 Subject: 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 Signed-off-by: David Sterba --- send-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'send-utils.c') 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; -- cgit v1.2.3