[PATCH 1/3] Btrfs-progs: subvol_uuid_search: Return error on memory allocation failure

2016-12-10 Thread Prasanth K S R
From: Prasanth K S R <prasanth@dell.com> This commit fixes coverity defect CID 1328695. Signed-off-by: Prasanth K S R <prasanth@dell.com> --- send-utils.c | 4 1 file changed, 4 insertions(+) diff --git a/send-utils.c b/send-utils.c index a85fa08..5026882 100644 --- a/

[PATCH 3/3] Btrfs-progs: subvol_uuid_search: Return error code on memory allocation failure

2016-12-10 Thread Prasanth K S R
From: Prasanth K S R <prasanth@dell.com> 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@dell.com> --- send-

[PATCH 2/3] Btrfs-progs: subvol_uuid_search: Return error encoded pointer

2016-12-10 Thread Prasanth K S R
From: Prasanth K S R <prasanth@dell.com> This commit changes subvol_uuid_search() to return an error encoded pointer on failure. Signed-off-by: Prasanth K S R <prasanth@dell.com> --- cmds-receive.c | 10 +- cmds-send.c| 19 +-- send-utils.c | 2

[PATCH V2] Btrfs-progs: subvol_uuid_search: Return error code on memory allocation failure

2016-10-16 Thread Prasanth K S R
From: Prasanth K S R <prasanth@dell.com> This commit fixes coverity defect CID 1328695. Signed-off-by: Prasanth K S R <prasanth@dell.com> --- cmds-receive.c | 10 +- cmds-send.c| 18 +- send-utils.c | 22 ++ 3 files

[PATCH] Btrfs-progs: subvol_uuid_search: Return error code on memory allocation failure

2016-10-05 Thread Prasanth K S R
From: Prasanth K S R <prasanth@dell.com> This commit fixes coverity defect CID 1328695. Signed-off-by: Prasanth K S R <prasanth@dell.com> --- send-utils.c | 5 + 1 file changed, 5 insertions(+) diff --git a/send-utils.c b/send-utils.c index a85fa08..6f80b6f 10064