exit after malloc failure when allocating sense data blob
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -422,6 +422,7 @@ iscsi_process_scsi_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu,
|
|||||||
if (task->datain.data == NULL) {
|
if (task->datain.data == NULL) {
|
||||||
iscsi_set_error(iscsi, "failed to allocate blob for "
|
iscsi_set_error(iscsi, "failed to allocate blob for "
|
||||||
"sense data");
|
"sense data");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
memcpy(task->datain.data, in->data, task->datain.size);
|
memcpy(task->datain.data, in->data, task->datain.size);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user