diff options
author | Alistair Francis <alistair.francis@xilinx.com> | 2016-06-27 15:37:32 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-06-27 15:37:32 +0100 |
commit | f6cf41932edf260c2574346a08358ad2d20c357e (patch) | |
tree | ea257aec4bcf2176b603a84f2790ff268f967603 /cpu-exec.c | |
parent | 92b30c2f7d783e423f3d0093a14c88f4532c0de1 (diff) | |
download | qemu-f6cf41932edf260c2574346a08358ad2d20c357e.zip qemu-f6cf41932edf260c2574346a08358ad2d20c357e.tar.gz qemu-f6cf41932edf260c2574346a08358ad2d20c357e.tar.bz2 |
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>
Diffstat (limited to 'cpu-exec.c')
0 files changed, 0 insertions, 0 deletions