[libvirt] [PATCH] conf: Remove console stream callback only when freeing console helper

Eric Blake eblake at redhat.com
Fri Aug 3 16:40:44 UTC 2012


On 08/03/2012 03:27 AM, Peter Krempa wrote:
> Commit ba226d334acbc49f6751b430e0c4e00f69eef6bf tried to fix crash of
> the daemon when a domain with a open console was destroyed. The fix was

s/a open/an open/

> wrong as it tried to remove the callback also when the stream was
> aborted, where at that point the fd stream driver was already freed and
> removed.
> 
> This patch clears the callbacks with a helper right before the hash is
> freed, so that it doesn't interfere with other codepaths where the
> stream object is freed.
> ---
>  src/conf/virconsole.c |   16 +++++++++++++---
>  1 files changed, 13 insertions(+), 3 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120803/098c5d66/attachment-0001.sig>


More information about the libvir-list mailing list