On 1/28/21 7:43 AM, Bin Meng wrote: > From: Bin Meng <[email protected]> > > 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}.
Oops, good catch. Reviewed-by: Philippe Mathieu-Daudé <[email protected]> > > Fixes: 1bd6fd8ed593 ("hw/sd/sdcard: Do not attempt to erase out of range > addresses") > Signed-off-by: Bin Meng <[email protected]> > --- > > hw/sd/sd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
