aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/test-qapi.py
diff options
context:
space:
mode:
authorBin Meng <bin.meng@windriver.com>2021-02-16 23:02:18 +0800
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-02-20 00:17:09 +0100
commit64ea2d9f74a824269f2f564632bda52d60ae9243 (patch)
tree216c5195a6a0d1ae3c2c832a2635b92a739e6b82 /tests/qapi-schema/test-qapi.py
parent17674695aba3d3fdeec4aeed7920fb760956c807 (diff)
downloadqemu-64ea2d9f74a824269f2f564632bda52d60ae9243.zip
qemu-64ea2d9f74a824269f2f564632bda52d60ae9243.tar.gz
qemu-64ea2d9f74a824269f2f564632bda52d60ae9243.tar.bz2
hw/sd: sd: Fix address check in sd_erase()
For high capacity memory cards, the erase start address and end address are multiplied by 512, but the address check is still based on the original block number in sd->erase_{start, end}. Fixes: 1bd6fd8ed593 ("hw/sd/sdcard: Do not attempt to erase out of range addresses") Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210216150225.27996-2-bmeng.cn@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'tests/qapi-schema/test-qapi.py')
0 files changed, 0 insertions, 0 deletions