mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-16 01:05:15 +08:00
* drivers: fix CFI MTD array bounds checks Generated-by: OpenAI Codex Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com> * drivers: reject truncated CFI erase geometry A truncated erase-region table leaves the full flash size registered with only part of its sector geometry. Fail probing instead of exposing a device whose erase address lookup can select the wrong sector. Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com> * drivers: fix CFI log indentation Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com> --------- Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>