]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/sd/sdcard: Do not abort when reading DAT lines on invalid cmd state
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 30 Jul 2024 07:44:46 +0000 (09:44 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 6 Aug 2024 08:22:52 +0000 (10:22 +0200)
commitbd6207903eb81c0e876452bba25ed7d57ddf5f89
tree137fb4175b97e38fc888ada4c058c856aa6c221c
parent22d5fb42a82378c208355ff4a27cf25fc1cd652e
hw/sd/sdcard: Do not abort when reading DAT lines on invalid cmd state

Guest should not try to read the DAT lines from invalid
command state. If it still insists to do so, return a
dummy value.

Cc: qemu-stable@nongnu.org
Fixes: e2dec2eab0 ("hw/sd/sdcard: Remove default case in read/write on DAT lines")
Reported-by: Zheyu Ma <zheyuma97@gmail.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2454
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240730092138.32443-3-philmd@linaro.org>
hw/sd/sd.c