From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEf0B-0001Xr-Qs for qemu-devel@nongnu.org; Wed, 28 Aug 2013 08:37:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEf05-0001Qg-Mr for qemu-devel@nongnu.org; Wed, 28 Aug 2013 08:37:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEf05-0001Qc-F1 for qemu-devel@nongnu.org; Wed, 28 Aug 2013 08:37:29 -0400 From: Amit Shah Date: Wed, 28 Aug 2013 18:07:19 +0530 Message-Id: Subject: [Qemu-devel] [PATCH v3 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. v3: * fix whitespace issues in patch 1 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