diff options
author | 2021-11-24 11:14:24 +0900 | |
---|---|---|
committer | 2021-11-26 18:01:55 -0800 | |
commit | d2d8c9fddb1c11ccfa73bf0ad2b1e6b4ea7afdaf (patch) | |
tree | 7af8ac8f42b9c96e9742dda0ec2b5dd63f30df93 /tools/testing/selftests/bpf/progs/bpf_iter_unix.c | |
parent | af_unix: Cut unix_validate_addr() out of unix_mkname(). (diff) | |
download | linux-rng-d2d8c9fddb1c11ccfa73bf0ad2b1e6b4ea7afdaf.tar.xz linux-rng-d2d8c9fddb1c11ccfa73bf0ad2b1e6b4ea7afdaf.zip |
af_unix: Copy unix_mkname() into unix_find_(bsd|abstract)().
We should not call unix_mkname() before unix_find_other() and instead do
the same thing where necessary based on the address type:
- terminating the address with '\0' in unix_find_bsd()
- calculating the hash in unix_find_abstract().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_iter_unix.c')
0 files changed, 0 insertions, 0 deletions