qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] ide: fix double free


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] ide: fix double free
Date: Wed, 02 Jul 2014 13:24:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Il 02/07/2014 13:12, ChenLiang ha scritto:
This patch avoid freeing dbs by dma_complete when dma_aio_cancel is running.
Because dma_complete also will be called by dma_bdrv_cb. So double free
will never happen.

Yes, you already said that. But I'm not sure _why_ the patch avoids freeing dbs, especially since the patch adds a free in dma_aio_cancel itself. My patch shouldn't have any effect. Where is my analysis of it wrong?

Paolo



reply via email to

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