btrfs-progs: subvol_uuid_search: return error code on memory allocation failure
authorPrasanth K S R <prasanth.ksr@dell.com>
Sat, 10 Dec 2016 13:47:44 +0000 (19:17 +0530)
committerDavid Sterba <dsterba@suse.com>
Wed, 14 Dec 2016 14:06:36 +0000 (15:06 +0100)
commitee518036d2cdf58d562b9448e3c062d5653c0d34
treec7d4084b860e5959a65ae7c4583c6de16af760e6
parenta2f7af94abe4a3491ca1280a2ae1d63edc0d62ab
btrfs-progs: subvol_uuid_search: return error code on memory allocation failure

On failure of memory allocation for a 'struct subvol_info', we would end
up dereferencing a NULL pointer. This commit fixes the issue by returning an
error encoded pointer.

Signed-off-by: Prasanth K S R <prasanth.ksr@dell.com>
Signed-off-by: David Sterba <dsterba@suse.com>
send-utils.c