Blame SOURCES/0026-exit-after-malloc-failure-when-allocating-sense-data-blob.patch

a66d21
exit after malloc failure when allocating sense data blob
a66d21
a66d21
Message-id: <1383729402-27559-8-git-send-email-pbonzini@redhat.com>
a66d21
Patchwork-id: 55502
a66d21
O-Subject: [PATCH 07/11] exit after malloc failure when allocating sense data blob
a66d21
Bugzilla: 1026820
a66d21
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
a66d21
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
a66d21
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
a66d21
a66d21
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
a66d21
(cherry picked from commit dbaa0b4ea6a4ca11d279a4264457ccb1ad4f67ad)
a66d21
---
a66d21
 lib/iscsi-command.c | 1 +
a66d21
 1 file changed, 1 insertion(+)
a66d21
diff --git a/lib/iscsi-command.c b/lib/iscsi-command.c
a66d21
index 95127a5..1191cd6 100644
a66d21
--- a/lib/iscsi-command.c
a66d21
+++ b/lib/iscsi-command.c
a66d21
@@ -365,6 +365,7 @@ iscsi_process_scsi_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu,
a66d21
 		if (task->datain.data == NULL) {
a66d21
 			iscsi_set_error(iscsi, "failed to allocate blob for "
a66d21
 					"sense data");
a66d21
+			break;
a66d21
 		}
a66d21
 		memcpy(task->datain.data, in->data, task->datain.size);
a66d21