Hi Naveen, On 2026-09-01T10:21:23, Naveen Kumar Chaudhary <[email protected]> wrote: > bootstage: fix record name fix-up offset in bootstage_unstash() > > The records read from the stash are copied to data->record + > data->rec_count, but the loop that assigns their name pointers iterated > starting at data->record + data->next_id. These offsets only coincide > when both are zero; with a non-zero next_id (e.g. after a 'first' init, > where next_id is BOOTSTAGE_ID_USER) the names are written into the wrong > records or past the end of the array. > > Iterate from data->record + data->rec_count so the name fix-up matches > the records that were actually copied. > > Fixes: 03ecac31498 ("bootstage: Use rec_count as the array index") > Signed-off-by: Naveen Kumar Chaudhary <[email protected]> > > common/bootstage.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <[email protected]> Regards, Simon
