Re: [Qemu-devel] [PATCH] qemu-char: Fix crash when switching consoles

2012-04-24 Thread Anthony Liguori
On 04/19/2012 03:27 PM, Stefan Weil wrote: qemu-system-arm (and other system emulations) crashes with SDL when the user switches consoles (Alt-Ctrl-F4). We already check for NULL pointers in qemu_chr_fe_ioctl, qemu_chr_be_can_write and other functions, so do this also for s-chr_read in

[Qemu-devel] [PATCH] qemu-char: Fix crash when switching consoles

2012-04-19 Thread Stefan Weil
qemu-system-arm (and other system emulations) crashes with SDL when the user switches consoles (Alt-Ctrl-F4). We already check for NULL pointers in qemu_chr_fe_ioctl, qemu_chr_be_can_write and other functions, so do this also for s-chr_read in qemu_chr_be_write. This fixes the crash.