Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a84b895a authored by Colin Cross's avatar Colin Cross Committed by Russell King
Browse files

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: default avatarColin Cross <ccross@android.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 4c36595e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}