Re: [PATCH 1/3] hw/sd: sd: Fix address check in sd_erase()

2021-02-08 Thread Philippe Mathieu-Daudé
On 1/28/21 7:43 AM, Bin Meng wrote: > From: Bin Meng > > 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 Mathie

[PATCH 1/3] hw/sd: sd: Fix address check in sd_erase()

2021-01-27 Thread Bin Meng
From: Bin Meng 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-