Skip to content

Commit 92cc245

Browse files
anakryikoMartin KaFai Lau
authored andcommitted
selftests/bpf: fix RELEASE=1 compilation for sock_addr.c
When building selftests with RELEASE=1 using GCC compiler, it complaints about uninitialized err. Fix the problem. Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
1 parent 32654bb commit 92cc245

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/bpf/prog_tests/sock_addr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2642,6 +2642,7 @@ void test_sock_addr(void)
26422642
break;
26432643
default:
26442644
ASSERT_TRUE(false, "Unknown sock addr test type");
2645+
err = -EINVAL;
26452646
break;
26462647
}
26472648

0 commit comments

Comments
 (0)