]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/85xx: Fix oops when mpc85xx_smp_guts_ids node cannot be found
authorXiaoming Ni <nixiaoming@huawei.com>
Wed, 29 Sep 2021 03:36:45 +0000 (11:36 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 8 Oct 2021 13:15:58 +0000 (00:15 +1100)
commit780fd3129be3d057ca7a00ceb1c057a95403484c
tree3b1416eeab692997bfc7f5d62d67433c25c013f6
parent3fd5ed4000cbd2a2a60554e19f50a26da31d31e4
powerpc/85xx: Fix oops when mpc85xx_smp_guts_ids node cannot be found

When the field described in mpc85xx_smp_guts_ids[] is not configured in
dtb, the mpc85xx_setup_pmc() does not assign a value to the "guts"
variable. As a result, the oops is triggered when
mpc85xx_freeze_time_base() is executed.

Fixes: c4b35f6ebec6 ("powerpc/mpc85xx: refactor the PM operations")
Cc: stable@vger.kernel.org # v4.6+
Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210929033646.39630-2-nixiaoming@huawei.com
arch/powerpc/platforms/85xx/mpc85xx_pm_ops.c