________________________________
From: Prerna Garg
Sent: Tuesday, April 11, 2017 9:57 PM
To: Kevin Wolf
Subject: Re: First contribution - Interested in Outreachy


Hello,


I am having difficulties sending the email through command line. So as a last 
resort I am sending the patch as an attachment.


Prerna


________________________________
From: Kevin Wolf <kw...@redhat.com>
Sent: Tuesday, April 11, 2017 1:23 PM
To: Prerna Garg
Cc: qemu-devel@nongnu.org; stefa...@redhat.com; Alberto Garcia
Subject: Re: First contribution - Interested in Outreachy

Hi Prerna,

Am 10.04.2017 um 21:59 hat Prerna Garg geschrieben:
> The previous patch was incorrect. Sorry for the inconvenience. Please consider
> this as my first contribution.

Please read this wiki page about how to submit patches to QEMU:

    http://wiki.qemu-project.org/Contribute/SubmitAPatch
Contribute/SubmitAPatch - 
QEMU<http://wiki.qemu-project.org/Contribute/SubmitAPatch>
wiki.qemu-project.org
QEMU welcomes contributions of code (either fixing bugs or adding new 
functionality). However, we get a lot of patches, and so we have some 
guidelines about ...




The most important point that is missing from your patch is the
Signed-off-by line, without which a patch cannot be accepted.

You should also try to have a commit message (including the subject
line) that describes the change that your patch is making, and include
[PATCH] in your subject line. If you use 'git format-patch' to create
the email, the [PATCH] is added automatically.

Kevin
From d7aa9e1659cedff36e7bed148fd0a3ebae63e255 Mon Sep 17 00:00:00 2001
From: Prerna Garg <prerna.g...@live.com>
Date: Tue, 11 Apr 2017 21:50:29 +0530
Subject: [PATCH] Changed malloc to g_malloc in block/iscsi.c file

Signed-off-by: Prerna Garg <prerna.g...@live.com>
---
 block/iscsi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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));
@@ -1398,7 +1398,7 @@ static void iscsi_readcapacity_sync(IscsiLun *iscsilun, Error **errp)
     struct scsi_task *task = NULL;
     struct scsi_readcapacity10 *rc10 = NULL;
     struct scsi_readcapacity16 *rc16 = NULL;
-    int retries = ISCSI_CMD_RETRIES; 
+    int retries = ISCSI_CMD_RETRIES;
 
     do {
         if (task != NULL) {
-- 
2.7.4

Reply via email to