On Tue, Apr 18, 2023 at 11:31 PM Simon Glass <[email protected]> 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 <[email protected]>
> ---
>
> (no changes since v1)
>
>  drivers/mtd/spi/sf_probe.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <[email protected]>

Reply via email to