diff options
Diffstat (limited to 'arch/x86/net/bpf_jit_comp.c')
-rw-r--r-- | arch/x86/net/bpf_jit_comp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c index ec5214f39aa8..70efcd0940f9 100644 --- a/arch/x86/net/bpf_jit_comp.c +++ b/arch/x86/net/bpf_jit_comp.c | |||
@@ -246,7 +246,7 @@ static void emit_prologue(u8 **pprog) | |||
246 | * goto out; | 246 | * goto out; |
247 | * if (++tail_call_cnt > MAX_TAIL_CALL_CNT) | 247 | * if (++tail_call_cnt > MAX_TAIL_CALL_CNT) |
248 | * goto out; | 248 | * goto out; |
249 | * prog = array->prog[index]; | 249 | * prog = array->ptrs[index]; |
250 | * if (prog == NULL) | 250 | * if (prog == NULL) |
251 | * goto out; | 251 | * goto out; |
252 | * goto *(prog->bpf_func + prologue_size); | 252 | * goto *(prog->bpf_func + prologue_size); |
@@ -284,9 +284,9 @@ static void emit_bpf_tail_call(u8 **pprog) | |||
284 | EMIT3(0x83, 0xC0, 0x01); /* add eax, 1 */ | 284 | EMIT3(0x83, 0xC0, 0x01); /* add eax, 1 */ |
285 | EMIT2_off32(0x89, 0x85, -STACKSIZE + 36); /* mov dword ptr [rbp - 516], eax */ | 285 | EMIT2_off32(0x89, 0x85, -STACKSIZE + 36); /* mov dword ptr [rbp - 516], eax */ |
286 | 286 | ||
287 | /* prog = array->prog[index]; */ | 287 | /* prog = array->ptrs[index]; */ |
288 | EMIT4_off32(0x48, 0x8D, 0x84, 0xD6, /* lea rax, [rsi + rdx * 8 + offsetof(...)] */ | 288 | EMIT4_off32(0x48, 0x8D, 0x84, 0xD6, /* lea rax, [rsi + rdx * 8 + offsetof(...)] */ |
289 | offsetof(struct bpf_array, prog)); | 289 | offsetof(struct bpf_array, ptrs)); |
290 | EMIT3(0x48, 0x8B, 0x00); /* mov rax, qword ptr [rax] */ | 290 | EMIT3(0x48, 0x8B, 0x00); /* mov rax, qword ptr [rax] */ |
291 | 291 | ||
292 | /* if (prog == NULL) | 292 | /* if (prog == NULL) |