Alistair Francis f6cf41932e 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>
2016-06-27 15:37:32 +01:00
..
2016-06-06 16:59:31 +01:00
2016-06-06 18:57:06 +02:00
2016-05-29 09:11:10 +02:00
2016-01-29 15:07:23 +00:00
2016-01-29 15:07:22 +00:00
2016-05-19 16:42:29 +02:00
2016-05-18 15:04:27 +03:00
2016-05-29 09:11:10 +02:00
2016-05-29 09:11:10 +02:00
2016-01-29 15:07:25 +00:00
2016-01-29 15:07:25 +00:00
2016-06-06 16:59:31 +01:00
2016-05-17 15:50:29 +02:00
2016-01-29 15:07:25 +00:00
2016-01-29 15:07:23 +00:00
2016-06-16 18:39:03 +02:00