commit | 28afcb1e7f7d1b899514cbdb58fb658ee0b5c5a3 | [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 | f2fac8b5571b2537cf499bab9a7962e19f64e9de [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>