diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-06-08 22:05:46 +0200 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-06-11 19:20:16 +0530 |
commit | 360ab88569201f8d282cf98546b86b8576b6f2ad (patch) | |
tree | b9381c4b86e5928af6bd0863b3812182390a60ff /lib/utils/irqchip | |
parent | 1da3d80b5bc074fce077adc47c97f3179c0addd9 (diff) |
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: 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>
Diffstat (limited to 'lib/utils/irqchip')
0 files changed, 0 insertions, 0 deletions