diff options
| author | Alistair Francis | 2016-06-27 16:37:32 +0200 |
|---|---|---|
| committer | Peter Maydell | 2016-06-27 16:37:32 +0200 |
| commit | f6cf41932edf260c2574346a08358ad2d20c357e (patch) | |
| tree | ea257aec4bcf2176b603a84f2790ff268f967603 /cpu-exec.c | |
| parent | hw/intc/arm_gicv3: Add missing break (diff) | |
| download | qemu-f6cf41932edf260c2574346a08358ad2d20c357e.tar.gz qemu-f6cf41932edf260c2574346a08358ad2d20c357e.tar.xz qemu-f6cf41932edf260c2574346a08358ad2d20c357e.zip | |
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
