zephyr/subsys/storage/flash_map
Dominik Ermel aa5d20aaef storage/flash_map: Return -ENODEV from flash_area_open
The commit adds check, to flash_area_open, whether there is any
device driver attached and returns -ENODEV if there isn't any.
This works around a problem where flash_area_open succeeds but
consecutive read/write causes crash.
It is enough to check the condition, and return error, here as
the flash_area_open has to precede, and be checked for success,
any read/write operations.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2022-06-05 14:28:58 +02:00
..
CMakeLists.txt
Kconfig
flash_map.c storage/flash_map: Return -ENODEV from flash_area_open 2022-06-05 14:28:58 +02:00
flash_map_default.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
flash_map_integrity.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
flash_map_layout.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
flash_map_priv.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
flash_map_shell.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00