Skip to content

Commit

Permalink
ARM: vfp: only clear vfp state for current cpu in vfp_pm_suspend
Browse files Browse the repository at this point in the history
vfp_pm_suspend runs on each cpu, only clear the hardware state
pointer for the current cpu.  Prevents a possible crash if one
cpu clears the hw state pointer when another cpu has already
checked if it is valid.
  • Loading branch information
colincross authored and motley-git committed Jun 18, 2012
1 parent 1872c11 commit 158766f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/vfp/vfpmodule.c
Expand Up @@ -451,7 +451,7 @@ static int vfp_pm_suspend(struct sys_device *dev, pm_message_t state)
}

/* clear any information we had about last context state */
memset(last_VFP_context, 0, sizeof(last_VFP_context));
last_VFP_context[ti->cpu] = NULL;

return 0;
}
Expand Down

0 comments on commit 158766f

Please sign in to comment.