Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a84b895

Browse files
colincrossRussell King
authored andcommitted
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: [email protected] Signed-off-by: Colin Cross <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 4c36595 commit a84b895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/vfp/vfpmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ static int vfp_pm_suspend(void)
460460
}
461461

462462
/* 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;
464464

465465
return 0;
466466
}

0 commit comments

Comments
 (0)