On 2026-10-29T16:23:07+11:00, Frieder Schrempf <[email protected]> wrote:
> bootstd: rauc: Initialise desc in distro_rauc_scan_parts()
>
> distro_rauc_scan_parts() only sets desc if the bootflow has a block
> device, but then checks desc before scanning the slots. Without a
> block device, that check reads an uninitialised pointer and may hand
> it to fs_set_blk_dev_with_part() and part_get_info().
>
> Initialise desc to NULL, so that a bootflow without a block device
> finds no slot, as the check intends.
>
> Fixes: f271b0627001 ("bootstd: rauc: Only scan all partitions instead of boot 
> files")
> Signed-off-by: Frieder Schrempf <[email protected]>
>
>  boot/bootmeth_rauc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to