Files
thead-opensbi/lib
Heinrich Schuchardt ab383936e1 lib: utils: missing initialization in thead_reset_init
commit 360ab88569201f8d282cf98546b86b8576b6f2ad upstream

If property csr-copy does not exist, fdt_getprop() will return NULL and cnt
will have a random value from the stack.

Call clone_csrs() only if cnt is initialized to a non-zero value.

Fixes: 49e422c5ad7a ("lib: utils: reset: Add T-HEAD sample platform reset driver")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
2023-09-26 21:55:29 +08:00
..
2023-07-30 03:23:20 +08:00