summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/jump_label.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kernel/jump_label.c')
-rw-r--r--arch/arm64/kernel/jump_label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/jump_label.c b/arch/arm64/kernel/jump_label.c
index 4f1fec7a4..c2dd1ad3e 100644
--- a/arch/arm64/kernel/jump_label.c
+++ b/arch/arm64/kernel/jump_label.c
@@ -28,7 +28,7 @@ void arch_jump_label_transform(struct jump_entry *entry,
void *addr = (void *)entry->code;
u32 insn;
- if (type == JUMP_LABEL_ENABLE) {
+ if (type == JUMP_LABEL_JMP) {
insn = aarch64_insn_gen_branch_imm(entry->code,
entry->target,
AARCH64_INSN_BRANCH_NOLINK);