Received: from eggs.gnu.org ([208.118.235.92]:46286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1aig-0000dF-ON for qemu-devel@nongnu.org; Wed, 15 Aug 2012 06:21:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1aif-0005Na-K0 for qemu-devel@nongnu.org; Wed, 15 Aug 2012 06:20:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1aif-0005NV-C2 for qemu-devel@nongnu.org; Wed, 15 Aug 2012 06:20:57 -0400 Message-ID: <502B7804.5000905@redhat.com> Date: Wed, 15 Aug 2012 12:20:52 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1345014594-6020-1-git-send-email-s.priebe@profihost.ag> <1345014594-6020-2-git-send-email-s.priebe@profihost.ag> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] PATCH V2: fix NULL dereferences / races between task completition and abort List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ronnie sahlberg Cc: qemu-devel@nongnu.org, Stefan Priebe Am 15.08.2012 10:13, schrieb ronnie sahlberg: > Acked-by: Ronnie Sahlberg > > > > On Wed, Aug 15, 2012 at 5:09 PM, Stefan Priebe wrote: >> Signed-off-by: Stefan Priebe >> >> --- >> 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