[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] hw/usb/redirect.c: crash in QOM cleanup
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH] hw/usb/redirect.c: crash in QOM cleanup |
Date: |
Wed, 31 Jul 2013 11:21:37 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130621 Thunderbird/17.0.7 |
Hi,
> diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
> index a594e95..1c62263 100644
> --- a/hw/usb/redirect.c
> +++ b/hw/usb/redirect.c
> @@ -1334,6 +1334,7 @@ static void usbredir_handle_destroy(USBDevice *udev)
> USBRedirDevice *dev = DO_UPCAST(USBRedirDevice, dev, udev);
>
> qemu_chr_delete(dev->cs);
> + dev->cs = NULL;
> /* Note must be done after qemu_chr_close, as that causes a close
> event */
> qemu_bh_delete(dev->chardev_close_bh);
Patch doesn't apply, probably because it is whitespace-mangled. Redid
it. Please use 'git send-email' to send patches in the future, it is
more robust.
cheers,
Gerd