mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue