
4 May
2023
4 May
'23
4:21 p.m.
On Tue, Apr 18, 2023 at 11:31 PM Simon Glass sjg@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@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@gmail.com