]> git.ipfire.org Git - thirdparty/u-boot.git/commit
caam: don't write memory at 0 on PPC
authorMichael Walle <mwalle@kernel.org>
Wed, 6 May 2026 12:34:11 +0000 (14:34 +0200)
committerPeng Fan <peng.fan@nxp.com>
Fri, 15 May 2026 11:28:29 +0000 (19:28 +0800)
commit09bc47cc337522b4b8fe8ed037676d1601547f91
tree0e7bfa9f9b2467c024bbdc55427e7fb714057eac
parent674f35a88478cf6513285bbfbe8b820af43b828f
caam: don't write memory at 0 on PPC

For non-secure boot environments pamu_init() isn't called but the CAAM
will still call sec_config_pamu_table() -> config_pamu() which then uses
an uninitialized ppaact variable. In fact, that variable is initialized
with 0, so the config_pamu() will happily assume the structure is there
and will operate on that memory. Call pamu_init() in the non-secure boot
case, too.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/powerpc/cpu/mpc85xx/cpu_init.c