From patchwork Fri Oct 12 09:26:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 191079 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 C58872C008E for ; Fri, 12 Oct 2012 20:26:24 +1100 (EST) Received: from localhost ([::1]:59322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMbVe-0004vb-Qd for incoming@patchwork.ozlabs.org; Fri, 12 Oct 2012 05:26:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMbVS-0004vG-ET for qemu-devel@nongnu.org; Fri, 12 Oct 2012 05:26:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMbVO-0002fu-U9 for qemu-devel@nongnu.org; Fri, 12 Oct 2012 05:26:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMbVO-0002fg-MA for qemu-devel@nongnu.org; Fri, 12 Oct 2012 05:26:06 -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 q9C9Q64C015922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 12 Oct 2012 05:26:06 -0400 Received: from rincewind.home.kraxel.org (ovpn-116-21.ams2.redhat.com [10.36.116.21]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q9C9Q5Yl001002; Fri, 12 Oct 2012 05:26:05 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 336D54177F; Fri, 12 Oct 2012 11:26:02 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Fri, 12 Oct 2012 11:26:00 +0200 Message-Id: <1350033962-16665-6-git-send-email-kraxel@redhat.com> In-Reply-To: <1350033962-16665-1-git-send-email-kraxel@redhat.com> References: <1350033962-16665-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 5/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)