From patchwork Wed Oct 17 07:54:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 191977 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 301812C00AE for ; Wed, 17 Oct 2012 18:54:55 +1100 (EST) Received: from localhost ([::1]:56012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOOSr-00023g-9D for incoming@patchwork.ozlabs.org; Wed, 17 Oct 2012 03:54:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOOSW-0001wn-Kn for qemu-devel@nongnu.org; Wed, 17 Oct 2012 03:54:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOOST-0006Vg-Vj for qemu-devel@nongnu.org; Wed, 17 Oct 2012 03:54:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOOST-0006VL-OK for qemu-devel@nongnu.org; Wed, 17 Oct 2012 03:54:29 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9H7sTp6023238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 17 Oct 2012 03:54:29 -0400 Received: from rincewind.home.kraxel.org (ovpn-116-27.ams2.redhat.com [10.36.116.27]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q9H7sSWF024230; Wed, 17 Oct 2012 03:54:28 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 282EC44141; Wed, 17 Oct 2012 09:54:25 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Wed, 17 Oct 2012 09:54:24 +0200 Message-Id: <1350460465-23536-7-git-send-email-kraxel@redhat.com> In-Reply-To: <1350460465-23536-1-git-send-email-kraxel@redhat.com> References: <1350460465-23536-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 6/7] usb-serial: don't magically zap chardev on umplug X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Gerd Hoffmann --- hw/usb/dev-serial.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb/dev-serial.c b/hw/usb/dev-serial.c index 69b6e48..43214cd 100644 --- a/hw/usb/dev-serial.c +++ b/hw/usb/dev-serial.c @@ -421,7 +421,7 @@ static void usb_serial_handle_destroy(USBDevice *dev) { USBSerialState *s = (USBSerialState *)dev; - qemu_chr_delete(s->cs); + qemu_chr_add_handlers(s->cs, NULL, NULL, NULL, NULL); } static int usb_serial_can_read(void *opaque)