@@ -1034,7 +1034,7 @@ static BlockAIOCB *iscsi_aio_ioctl(BlockDriverState *bs,
return NULL;
}
- acb->task = malloc(sizeof(struct scsi_task));
+ acb->task = g_malloc(sizeof(struct scsi_task));
if (acb->task == NULL) {
error_report("iSCSI: Failed to allocate task for scsi command. %s",
iscsi_get_error(iscsi));
________________________________
From: Prerna Garg
Sent: Tuesday, April 11, 2017 12:51 AM
To: qemu-devel@nongnu.org
Cc: stefanha@redhat.com; kwolf@redhat.com; Alberto Garcia
Subject: First contribution - Interested in Outreachy
Hello,
This is my first patch submission. I am interested in the block filter project for this round of Outreachy.
@@ -263,7 +263,7 @@ host_memory_backend_memory_complete(UserCreatable *uc, Error **errp)
uint64_t sz;
if (bc->alloc) {
- bc->alloc(backend, &local_err);
+ bc->g_alloc(backend, &local_err);
if (local_err) {
goto out;
}