mirror_qemu/hw/ssi
Eden Mikitas 9c49c83e4b 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>
2020-06-05 17:23:08 +01:00
..
Kconfig ssi: express dependencies with kconfig 2019-03-07 21:45:53 +01:00
Makefile.objs hw/*/Makefile.objs: Move many .o files to common-objs 2020-02-04 09:00:57 +01:00
aspeed_smc.c aspeed/smc: Fix DMA support for AST2600 2020-03-23 17:22:30 +00:00
imx_spi.c hw/ssi/imx_spi: changed while statement to prevent underflow 2020-06-05 17:23:08 +01:00
mss-spi.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
omap_spi.c Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
pl022.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ssi.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
stm32f2xx_spi.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
trace-events aspeed/smc: Fix DMA support for AST2600 2020-03-23 17:22:30 +00:00
xilinx_spi.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
xilinx_spips.c qom: Drop parameter @errp of object_property_add() & friends 2020-05-15 07:07:58 +02:00