Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <kuniyu@amazon.co.jp>
Link: https://lore.kernel.org/r/20220113002849.4384-6-kuniyu@amazon.co.jp
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Kuniyuki Iwashima and committed by
Alexei Starovoitov
a796966b 7ff8985c

+1 -1
+1 -1
tools/testing/selftests/bpf/progs/bpf_iter_unix.c
··· 63 63 BPF_SEQ_PRINTF(seq, " @"); 64 64 65 65 for (i = 1; i < len; i++) { 66 - /* unix_mkname() tests this upper bound. */ 66 + /* unix_validate_addr() tests this upper bound. */ 67 67 if (i >= sizeof(struct sockaddr_un)) 68 68 break; 69 69