Skip to content

Commit 8b52d09

Browse files
author
Alexei Starovoitov
committed
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/[email protected]/ ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
2 parents 0d3bf64 + d0bf7cd commit 8b52d09

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/riscv/net/bpf_jit_comp64.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,10 +1061,9 @@ static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im,
10611061
stack_size += 16;
10621062

10631063
save_ret = flags & (BPF_TRAMP_F_CALL_ORIG | BPF_TRAMP_F_RET_FENTRY_RET);
1064-
if (save_ret) {
1064+
if (save_ret)
10651065
stack_size += 16; /* Save both A5 (BPF R0) and A0 */
1066-
retval_off = stack_size;
1067-
}
1066+
retval_off = stack_size;
10681067

10691068
stack_size += nr_arg_slots * 8;
10701069
args_off = stack_size;

0 commit comments

Comments
 (0)