diff options
author | Simon Glass <sjg@chromium.org> | 2023-05-04 16:50:47 -0600 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-05-11 10:25:29 +0800 |
commit | 28afcb1e7f7d1b899514cbdb58fb658ee0b5c5a3 (patch) | |
tree | 4d173663af99e0362599bfb1d8155037481c72c6 /arch/x86 | |
parent | f2fac8b5571b2537cf499bab9a7962e19f64e9de (diff) | |
download | u-boot-28afcb1e7f7d1b899514cbdb58fb658ee0b5c5a3.zip u-boot-28afcb1e7f7d1b899514cbdb58fb658ee0b5c5a3.tar.gz u-boot-28afcb1e7f7d1b899514cbdb58fb658ee0b5c5a3.tar.bz2 |
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>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions