aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-05-04 16:50:47 -0600
committerBin Meng <bmeng@tinylab.org>2023-05-11 10:25:29 +0800
commit28afcb1e7f7d1b899514cbdb58fb658ee0b5c5a3 (patch)
tree4d173663af99e0362599bfb1d8155037481c72c6 /arch/x86
parentf2fac8b5571b2537cf499bab9a7962e19f64e9de (diff)
downloadu-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