Commit fc257bc5 authored by Colin Cross's avatar Colin Cross Committed by Ben Hutchings

ARM: 7476/1: vfp: only clear vfp state for current cpu in vfp_pm_suspend

commit a84b895a upstream.

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.
Signed-off-by: default avatarColin Cross <ccross@android.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent c51cf242
...@@ -456,7 +456,7 @@ static int vfp_pm_suspend(void) ...@@ -456,7 +456,7 @@ static int vfp_pm_suspend(void)
} }
/* clear any information we had about last context state */ /* 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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment