diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2025-09-23 12:29:04 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-09-23 12:29:04 -0700 |
| commit | 8b52d09a1dfe949851675b30b309865ade8ce457 (patch) | |
| tree | 3027e3b88f37370f16491fea402eafa03338d5b2 | |
| parent | bpftool: Add bash completion for program signing options (diff) | |
| parent | riscv: bpf: Fix uninitialized symbol 'retval_off' (diff) | |
| download | linux-8b52d09a1dfe949851675b30b309865ade8ce457.tar.gz linux-8b52d09a1dfe949851675b30b309865ade8ce457.zip | |
Merge branch 'riscv-bpf-fix-uninitialized-symbol-retval_off'
Chenghao Duan says:
====================
riscv: bpf: Fix uninitialized symbol 'retval_off'
v2:
Adjust the commit log
URL for version v1:
https://lore.kernel.org/all/20250820062520.846720-1-duanchenghao@kylinos.cn/
====================
Link: https://patch.msgid.link/20250922062244.822937-1-duanchenghao@kylinos.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
| -rw-r--r-- | arch/riscv/net/bpf_jit_comp64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/riscv/net/bpf_jit_comp64.c b/arch/riscv/net/bpf_jit_comp64.c index 83672373d026..d0d2768d100d 100644 --- a/arch/riscv/net/bpf_jit_comp64.c +++ b/arch/riscv/net/bpf_jit_comp64.c @@ -1061,10 +1061,9 @@ static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, stack_size += 16; save_ret = flags & (BPF_TRAMP_F_CALL_ORIG | BPF_TRAMP_F_RET_FENTRY_RET); - if (save_ret) { + if (save_ret) stack_size += 16; /* Save both A5 (BPF R0) and A0 */ - retval_off = stack_size; - } + retval_off = stack_size; stack_size += nr_arg_slots * 8; args_off = stack_size; |
