diff options
author | Colin Cross <ccross@android.com> | 2012-07-19 21:03:43 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-07-31 05:30:42 -0400 |
commit | a84b895a2348f0dbff31b71ddf954f70a6cde368 (patch) | |
tree | e5b4d9734e482c4f126ac3d466db780eed74a18d | |
parent | 4c36595ec87115f2f876f7d4fdec8ca284a42b9c (diff) |
ARM: 7476/1: vfp: only clear vfp state for current cpu in vfp_pm_suspend
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.
Cc: stable@vger.kernel.org
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/vfp/vfpmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index 586961929e96..9428006728f2 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c | |||
@@ -460,7 +460,7 @@ static int vfp_pm_suspend(void) | |||
460 | } | 460 | } |
461 | 461 | ||
462 | /* clear any information we had about last context state */ | 462 | /* clear any information we had about last context state */ |
463 | memset(vfp_current_hw_state, 0, sizeof(vfp_current_hw_state)); | 463 | vfp_current_hw_state[ti->cpu] = NULL; |
464 | 464 | ||
465 | return 0; | 465 | return 0; |
466 | } | 466 | } |