[PATCH v2 03/18] sf: Guard against zero erasesize

Bin Meng bmeng.cn at gmail.com
Thu May 4 16:21:55 CEST 2023


On Tue, Apr 18, 2023 at 11:31 PM Simon Glass <sjg at chromium.org> wrote:
>
> With tiny SPI flash the erasesize is 0 which can cause a divide-by-zero
> error. Check for this and returns a proper error instead.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> (no changes since v1)
>
>  drivers/mtd/spi/sf_probe.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list