mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-22 20:39:38 +07:00
powerpc: Fix mpic_resume on early G5 macs
mpic_resume() on G5 macs blindly dereferences mpic->fixups, but it may legitimately be NULL (as on PowerMac7,2). Add an explicit check. This fixes suspend-to-disk with one processor (maxcpus=1) for me. Signed-off-by: Alastair Bridgewater <alastair.bridgewater@gmail.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
bd2b64a12b
commit
7c9d93604b
@ -1666,7 +1666,7 @@ static int mpic_resume(struct sys_device *dev)
|
||||
mpic->save_data[i].dest);
|
||||
|
||||
#ifdef CONFIG_MPIC_U3_HT_IRQS
|
||||
{
|
||||
if (mpic->fixups) {
|
||||
struct mpic_irq_fixup *fixup = &mpic->fixups[i];
|
||||
|
||||
if (fixup->base) {
|
||||
|
Loading…
Reference in New Issue
Block a user