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

Commit 7a292b6c authored by Thierry Reding's avatar Thierry Reding Committed by Will Deacon
Browse files

arm64: errata: Update stale comment



Commit 73f38166 ("arm64: Advertise mitigation of Spectre-v2, or lack
thereof") renamed the caller of the install_bp_hardening_cb() function
but forgot to update a comment, which can be confusing when trying to
follow the code flow.

Fixes: 73f38166 ("arm64: Advertise mitigation of Spectre-v2, or lack thereof")
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 54ecb8f7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -128,8 +128,8 @@ static void install_bp_hardening_cb(bp_hardening_cb_t fn,
	int cpu, slot = -1;

	/*
	 * enable_smccc_arch_workaround_1() passes NULL for the hyp_vecs
	 * start/end if we're a guest. Skip the hyp-vectors work.
	 * detect_harden_bp_fw() passes NULL for the hyp_vecs start/end if
	 * we're a guest. Skip the hyp-vectors work.
	 */
	if (!hyp_vecs_start) {
		__this_cpu_write(bp_hardening_data.fn, fn);