aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/cppc
diff options
context:
space:
mode:
authorManuel Hernández Méndez <maherme.dev@gmail.com>2025-07-08 20:09:14 +0200
committerAnup Patel <anup@brainfault.org>2025-07-22 15:26:44 +0530
commit0b7c2e0d6091e6f48b4b3b2a345fd588eb95ddfc (patch)
treec7ce8824c29aa9ee2fcac4f53a256bfb0bfa3b20 /lib/utils/cppc
parente10a45752fe77a1e6fc75e254947dadc3db633ec (diff)
downloadopensbi-0b7c2e0d6091e6f48b4b3b2a345fd588eb95ddfc.zip
opensbi-0b7c2e0d6091e6f48b4b3b2a345fd588eb95ddfc.tar.gz
opensbi-0b7c2e0d6091e6f48b4b3b2a345fd588eb95ddfc.tar.bz2
platform: openpiton: fix uninitialized plic_data struct
The plic_data struct was uninitialized. This led to misfunction behavior since it was subsequently assigned to the global plic struct, and some struct fields, such as flags and irqchip, contained random values. The fix proposes to initialize the plic_data to the global plic struct, so, after parsing the fdt, the fields of the struct will be set to the default values set in global plic struct definition, or the parsed values in the fdt, or zero. Fixes: 4c37451 ("platform: openpiton: Read the device configurations from device tree") Signed-off-by: Manuel Hernández Méndez <maherme.dev@gmail.com> Reviewed-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20250708180914.1131-1-maherme.dev@gmail.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils/cppc')
0 files changed, 0 insertions, 0 deletions