[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] First contribution - Interested in Outreachy
From: |
Prerna Garg |
Subject: |
Re: [Qemu-devel] First contribution - Interested in Outreachy |
Date: |
Mon, 10 Apr 2017 19:59:57 +0000 |
Hello,
The previous patch was incorrect. Sorry for the inconvenience. Please consider
this as my first contribution.
diff --git a/block/iscsi.c b/block/iscsi.c
index 716e74a..b926ed4 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -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: address@hidden
Cc: address@hidden; address@hidden; 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.
diff --git a/backends/hostmem.c b/backends/hostmem.c
index 89feb9e..f056a25 100644
--- a/backends/hostmem.c
+++ b/backends/hostmem.c
@@ -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;
}