qemu/hw/sd
Philippe Mathieu-Daudé 9df1c0a555 hw/sd/sdhci: Reset @data_count index on invalid ADMA transfers
We neglected to clear the @data_count index on ADMA error,
allowing to trigger assertion in sdhci_read_dataport() or
sdhci_write_dataport().

Cc: qemu-stable@nongnu.org
Fixes: d7dfca0807 ("hw/sdhci: introduce standard SD host controller")
Reported-by: Zheyu Ma <zheyuma97@gmail.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2455
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240730092138.32443-4-philmd@linaro.org>
(cherry picked from commit ed5a159c3d)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2024-08-28 08:37:28 +03:00
..
allwinner-sdhost.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
aspeed_sdhci.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
bcm2835_sdhost.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
cadence_sdhci.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
core.c hw/sd: Declare QOM types using DEFINE_TYPES() macro 2023-11-07 13:08:49 +01:00
Kconfig hw/sd: Add Cadence SDHCI emulation 2020-09-09 15:54:18 -07:00
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
npcm7xx_sdhci.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
omap_mmc.c hw/arm/omap: Drop useless casts from void * to pointer 2023-01-12 17:15:09 +00:00
pl181.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
pxa2xx_mmci.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
sd.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
sdhci-internal.h hw/sd/sdhci: Support big endian SD host controller interfaces 2022-12-21 14:17:55 -03:00
sdhci-pci.c hw/sd: Declare QOM types using DEFINE_TYPES() macro 2023-11-07 13:08:49 +01:00
sdhci.c hw/sd/sdhci: Reset @data_count index on invalid ADMA transfers 2024-08-28 08:37:28 +03:00
sdmmc-internal.c hw/sd: Add sd_cmd_SEND_OP_CMD() handler 2023-09-01 11:40:04 +02:00
sdmmc-internal.h Clean up header guards that don't match their file name 2019-05-13 08:58:55 +02:00
ssi-sd.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
trace-events speed/sdhci: Add trace events 2021-10-22 09:52:17 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00