aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2022-01-13 00:28:49 +0000
committerAlexei Starovoitov <[email protected]>2022-01-18 23:45:06 +0000
commita796966b6ea0abe05eebeb2443391b283f89b1e0 (patch)
treed20875268b52fbb9c5dea70918083f6ef64eec1c /tools/testing/selftests/bpf/progs/bpf_iter_unix.c
parentselftest/bpf: Test batching and bpf_(get|set)sockopt in bpf unix iter. (diff)
downloadkernel-a796966b6ea0abe05eebeb2443391b283f89b1e0.tar.gz
kernel-a796966b6ea0abe05eebeb2443391b283f89b1e0.zip
selftest/bpf: Fix a stale comment.
The commit b8a58aa6fccc ("af_unix: Cut unix_validate_addr() out of unix_mkname().") moved the bound test part into unix_validate_addr(). Signed-off-by: Kuniyuki Iwashima <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_iter_unix.c')
-rw-r--r--tools/testing/selftests/bpf/progs/bpf_iter_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/bpf_iter_unix.c b/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
index c21e3f545371..e6aefae38894 100644
--- a/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
+++ b/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
@@ -63,7 +63,7 @@ int dump_unix(struct bpf_iter__unix *ctx)
BPF_SEQ_PRINTF(seq, " @");
for (i = 1; i < len; i++) {
- /* unix_mkname() tests this upper bound. */
+ /* unix_validate_addr() tests this upper bound. */
if (i >= sizeof(struct sockaddr_un))
break;