qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] PATCH V2: fix NULL dereferences / races between


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] PATCH V2: fix NULL dereferences / races between task completition and abort
Date: Wed, 15 Aug 2012 12:20:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0

Am 15.08.2012 10:13, schrieb ronnie sahlberg:
> Acked-by: Ronnie Sahlberg <address@hidden>
> 
> 
> 
> On Wed, Aug 15, 2012 at 5:09 PM, Stefan Priebe <address@hidden> wrote:
>> Signed-off-by: Stefan Priebe <address@hidden>
>>
>> ---
>>  block/iscsi.c |   55 +++++++++++++++++++++++--------------------------------
>>  1 files changed, 23 insertions(+), 32 deletions(-)
>>
>> diff --git a/block/iscsi.c b/block/iscsi.c
>> index 12ca76d..1c8b049 100644
>> --- a/block/iscsi.c
>> +++ b/block/iscsi.c
>> @@ -76,6 +76,10 @@ static void
>>  iscsi_abort_task_cb(struct iscsi_context *iscsi, int status, void 
>> *command_data,
>>                      void *private_data)
>>  {
>> +           IscsiAIOCB *acb = (IscsiAIOCB *)private_data;
>> +
>> +           scsi_free_scsi_task(acb->task);
>> +           acb->task = NULL;
>>  }

Fixed the indentation here (which checkpatch unfortunately doesn't seem
to recognise) and applied to the block branch. Thanks.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]