diff options
-rw-r--r-- | kernel/bpf/verifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index d4593571c404..71a9429fdbb5 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c | |||
@@ -279,7 +279,7 @@ static void print_verifier_state(struct bpf_verifier_env *env, | |||
279 | for (i = 0; i < state->allocated_stack / BPF_REG_SIZE; i++) { | 279 | for (i = 0; i < state->allocated_stack / BPF_REG_SIZE; i++) { |
280 | if (state->stack[i].slot_type[0] == STACK_SPILL) | 280 | if (state->stack[i].slot_type[0] == STACK_SPILL) |
281 | verbose(env, " fp%d=%s", | 281 | verbose(env, " fp%d=%s", |
282 | -MAX_BPF_STACK + i * BPF_REG_SIZE, | 282 | (-i - 1) * BPF_REG_SIZE, |
283 | reg_type_str[state->stack[i].spilled_ptr.type]); | 283 | reg_type_str[state->stack[i].spilled_ptr.type]); |
284 | } | 284 | } |
285 | verbose(env, "\n"); | 285 | verbose(env, "\n"); |