Skip to content

Commit 93fccb1

Browse files
nixiaominggregkh
authored andcommitted
powerpc/85xx: Fix oops when mpc85xx_smp_guts_ids node cannot be found
commit 3c2172c 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: 56f1ba2 ("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>
1 parent 875609a commit 93fccb1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/powerpc/platforms/85xx/mpc85xx_pm_ops.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ int __init mpc85xx_setup_pmc(void)
9494
pr_err("Could not map guts node address\n");
9595
return -ENOMEM;
9696
}
97+
qoriq_pm_ops = &mpc85xx_pm_ops;
9798
}
9899

99-
qoriq_pm_ops = &mpc85xx_pm_ops;
100-
101100
return 0;
102101
}

0 commit comments

Comments
 (0)