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