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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| flash_map_default.c | ||
| flash_map_integrity.c | ||
| flash_map_layout.c | ||
| flash_map_priv.h | ||
| flash_map_shell.c | ||
| flash_map.c | ||
| Kconfig | ||