opensbi/lib/utils/reset
Heinrich Schuchardt 360ab88569 lib: utils: missing initialization in thead_reset_init
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: 49e422c5ad ("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>
2021-06-11 19:20:16 +05:30
..
fdt_reset.c lib: utils: Try other FDT drivers when we see SBI_ENODEV 2021-05-24 15:49:21 +05:30
fdt_reset_htif.c lib: sbi: Simplify system reset platform operations 2021-04-28 17:25:00 +05:30
fdt_reset_sifive.c lib: sbi: Simplify system reset platform operations 2021-04-28 17:25:00 +05:30
fdt_reset_thead.c lib: utils: missing initialization in thead_reset_init 2021-06-11 19:20:16 +05:30
fdt_reset_thead.h lib: utils: reset: Add T-HEAD sample platform reset driver 2021-04-22 15:13:53 +05:30
fdt_reset_thead_asm.S lib: utils: reset: Add T-HEAD sample platform reset driver 2021-04-22 15:13:53 +05:30
objects.mk lib: utils: reset: Add T-HEAD sample platform reset driver 2021-04-22 15:13:53 +05:30