Skip to content
Commit bb0fa074 authored by Dominik Ermel's avatar Dominik Ermel Committed by Benjamin Cabé
Browse files

stream_flash: Enforce size to be explicitly present on init



The commit changes requirements for stream_flash_init, where size
can no longer be 0 and has to be explicitly set, to avoid situation
where size autodetection, invoked by size == 0, would miss changes in
layout and silently allow overflow of Stream Flash into other partitions.

There has also been new Kconfig option CONFIG_STREAM_FLASH_INSPECT,
set to y by default to keep legacy behaviour, that can be used to turn
off stream_flash_ctx vs device inspection, allowing user to shed
inspection code once it is not useful anymore.

Fixes: #71042

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent 5b001d32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment