commit | 3190f1e3419966bd9c6c8574e62ed09957a5be84 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu May 04 16:50:47 2023 -0600 |
committer | Bin Meng <bmeng@tinylab.org> | Thu May 11 10:25:29 2023 +0800 |
tree | 4d173663af99e0362599bfb1d8155037481c72c6 | |
parent | 28fa3a5101d5d696f60b4a43e2039e7ccde33133 [diff] |
sf: Guard against zero erasesize With tiny SPI flash the erasesize is 0 which can cause a divide-by-zero error. Check for this and return a proper error instead. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>