[Qemu-devel] [PATCH 5/5] usb-redir: Don't try to write to the chardev after a close event

2011-11-19 Thread Hans de Goede
Since we handle close async in a bh, do_write and thus write can get called after receiving a close event. This patch adds a check to the usb-redir write callback to not call qemu_chr_fe_write on a closed backend. Signed-off-by: Hans de Goede --- usb-redir.c |4 1 files changed, 4 inser

[Qemu-devel] [PATCH 5/5] usb-redir: Don't try to write to the chardev after a close event

2011-08-11 Thread Hans de Goede
Sicne we handle close async in a bh, do_write and thus write can get called after receiving a close event. This patch adds a check to the usb-redir write callback to not do a qemu_chr_write on a closed chardev. Signed-off-by: Hans de Goede --- usb-redir.c |2 +- 1 files changed, 1 insertions