]> git.proxmox.com Git - mirror_qemu.git/commit
cadence_uart: Protect against transmit errors
authorAlistair Francis <alistair.francis@xilinx.com>
Mon, 27 Jun 2016 14:37:32 +0000 (15:37 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 27 Jun 2016 14:37:32 +0000 (15:37 +0100)
commitf6cf41932edf260c2574346a08358ad2d20c357e
treeea257aec4bcf2176b603a84f2790ff268f967603
parent92b30c2f7d783e423f3d0093a14c88f4532c0de1
cadence_uart: Protect against transmit errors

If qemu_chr_fe_write() returns an error (represented by a negative
number) we should skip incrementing the count and initiating a
memmove().

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 667e5dc534d33338fcfc2471e5aa32fe7cbd13dc.1466546703.git.alistair.francis@xilinx.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/cadence_uart.c