summary refs log tree commit diff stats
path: root/python/qemu/accel.py
diff options
context:
space:
mode:
authorEden Mikitas <e.mikitas@gmail.com>2020-06-02 13:44:34 +0100
committerPeter Maydell <peter.maydell@linaro.org>2020-06-05 17:23:08 +0100
commit9c49c83e4b23d31676633a1189faa6e70b489c01 (patch)
treea17da6b23e17d28065fa1b90a242ad7c393686e6 /python/qemu/accel.py
parent5d2f557b47dfbf8f23277a5bdd8473d4607c681a (diff)
downloadfocaccia-qemu-9c49c83e4b23d31676633a1189faa6e70b489c01.tar.gz
focaccia-qemu-9c49c83e4b23d31676633a1189faa6e70b489c01.zip
hw/ssi/imx_spi: changed while statement to prevent underflow
The while statement in question only checked if tx_burst is not 0.
tx_burst is a signed int, which is assigned the value put by the
guest driver in ECSPI_CONREG. The burst length can be anywhere
between 1 and 4096, and since tx_burst is always decremented by 8
it could possibly underflow, causing an infinite loop.

Signed-off-by: Eden Mikitas <e.mikitas@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'python/qemu/accel.py')
0 files changed, 0 insertions, 0 deletions