android_kernel_xiaomi_sm7250/arch/powerpc/platforms/85xx
Xiaoming Ni c6c329a8ea powerpc/85xx: Fix oops when mpc85xx_smp_guts_ids node cannot be found
commit 3c2172c1c47b4079c29f0e6637d764a99355ebcd upstream.

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: 56f1ba2807 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-11-26 11:36:02 +01:00
..
bsc913x_qds.c
bsc913x_rdb.c
c293pcie.c
common.c
corenet_generic.c
ge_imp3a.c
Kconfig
ksi8560.c
Makefile
mpc85xx_ads.c
mpc85xx_cds.c
mpc85xx_ds.c
mpc85xx_mds.c
mpc85xx_pm_ops.c
mpc85xx_rdb.c
mpc85xx.h
mpc8536_ds.c
mvme2500.c
p1010rdb.c
p1022_ds.c
p1022_rdk.c
p1023_rdb.c
ppa8548.c
qemu_e500.c
sbc8548.c
sgy_cts1000.c
smp.c
smp.h
socrates_fpga_pic.c
socrates_fpga_pic.h
socrates.c
stx_gp3.c
t1042rdb_diu.c
tqm85xx.c
twr_p102x.c
xes_mpc85xx.c