diff mbox

First contribution - Interested in Outreachy

Message ID BM1PR01MB07224A0D4D1815F66D26EB7C84010@BM1PR01MB0722.INDPRD01.PROD.OUTLOOK.COM
State New
Headers show

Commit Message

Prerna Garg April 10, 2017, 7:59 p.m. UTC
Hello,


The previous patch was incorrect. Sorry for the inconvenience. Please consider this as my first contribution.
diff mbox

Patch

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: 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.


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;
         }