From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEesI-0003wI-Me for qemu-devel@nongnu.org; Wed, 28 Aug 2013 08:29:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEesC-0007a9-E8 for qemu-devel@nongnu.org; Wed, 28 Aug 2013 08:29:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEesC-0007a0-6V for qemu-devel@nongnu.org; Wed, 28 Aug 2013 08:29:20 -0400 From: Amit Shah Date: Wed, 28 Aug 2013 17:59:08 +0530 Message-Id: Subject: [Qemu-devel] [PATCH v2 0/3] char: fix segfault on chardev detach List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu list Cc: Amit Shah , Paolo Bonzini , Gerd Hoffmann , Anthony Liguori , Hans de Goede This series fixes a segfault when a frontend is detached from a chardev while the chardev had a pending callback registered. Further details in patch 3. Please review. v2: * Move tag property to CharDriverState to simplify everything (Gerd) Amit Shah (3): char: move backends' io watch tag to CharDriverState char: use common function to disable callbacks on chardev close char: remove watch callback on chardev detach from frontend include/sysemu/char.h | 1 + qemu-char.c | 82 +++++++++++++++++++-------------------------------- 2 files changed, 32 insertions(+), 51 deletions(-) -- 1.8.3.1