Received: from eggs.gnu.org ([2001:4830:134:3::10]:37681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1budyp-0005IJ-1C for qemu-devel@nongnu.org; Thu, 13 Oct 2016 07:15:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1budyn-0006Ud-3k for qemu-devel@nongnu.org; Thu, 13 Oct 2016 07:15:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1budym-0006UA-Un for qemu-devel@nongnu.org; Thu, 13 Oct 2016 07:15:17 -0400 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 13 Oct 2016 15:14:46 +0400 Message-Id: <20161013111449.29387-7-marcandre.lureau@redhat.com> In-Reply-To: <20161013111449.29387-1-marcandre.lureau@redhat.com> References: <20161013111449.29387-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 6/9] qdev: remove call to qemu_chr_add_handlers() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, berrange@redhat.com, imbrenda@linux.vnet.ibm.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= chardev property is blindly trying to remove the frontend handlers, but that doesn't work properly that way since there might be several frontend on the same chardev. Instead, chardev frontend should use qemu_chr_remove_handlers(). A previous commit should have fixed all users. Signed-off-by: Marc-Andr=C3=A9 Lureau --- hw/core/qdev-properties-system.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-s= ystem.c index e55afe6..73d4482 100644 --- a/hw/core/qdev-properties-system.c +++ b/hw/core/qdev-properties-system.c @@ -185,7 +185,6 @@ static void release_chr(Object *obj, const char *name= , void *opaque) CharDriverState *chr =3D *ptr; =20 if (chr) { - qemu_chr_add_handlers(chr, NULL, NULL, NULL, NULL); qemu_chr_fe_release(chr); } } --=20 2.10.0