summaryrefslogtreecommitdiffstats
path: root/arch/arm/vfp
diff options
context:
space:
mode:
authorColin Cross2012-07-20 03:03:43 +0200
committerRussell King2012-07-31 11:30:42 +0200
commita84b895a2348f0dbff31b71ddf954f70a6cde368 (patch)
treee5b4d9734e482c4f126ac3d466db780eed74a18d /arch/arm/vfp
parentARM: 7468/1: ftrace: Trace function entry before updating index (diff)
downloadkernel-qcow2-linux-a84b895a2348f0dbff31b71ddf954f70a6cde368.tar.gz
kernel-qcow2-linux-a84b895a2348f0dbff31b71ddf954f70a6cde368.tar.xz
kernel-qcow2-linux-a84b895a2348f0dbff31b71ddf954f70a6cde368.zip
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>
Diffstat (limited to 'arch/arm/vfp')
-rw-r--r--arch/arm/vfp/vfpmodule.c2
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)
}
/* clear any information we had about last context state */
- memset(vfp_current_hw_state, 0, sizeof(vfp_current_hw_state));
+ vfp_current_hw_state[ti->cpu] = NULL;
return 0;
}