aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2024-04-05 08:48:12 +0200
committerTakashi Iwai <[email protected]>2024-04-05 08:48:12 +0200
commit100c85421b52e41269ada88f7d71a6b8a06c7a11 (patch)
tree1e291a2d1b8e68720a15dfd48964357502d03fc9 /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
parentc4e51e424e2c772ce1836912a8b0b87cd61bc9d5 (diff)
parent90f8917e7a15f6dd508779048bdf00ce119b6ca0 (diff)
Merge tag 'asoc-fix-v6.9-rc2' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.9 A relatively large set of fixes here, the biggest piece of it is a series correcting some problems with the delay reporting for Intel SOF cards but there's a bunch of other things. Everything here is driver specific except for a fix in the core for an issue with sign extension handling volume controls.
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
-rw-r--r--tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c b/tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
index 1f67e832666e..d8869b03dda9 100644
--- a/tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
+++ b/tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
@@ -28,8 +28,7 @@ int sendmsg_unix_prog(struct bpf_sock_addr *ctx)
if (sa_kern->uaddrlen != unaddrlen)
return 0;
- sa_kern_unaddr = bpf_rdonly_cast(sa_kern->uaddr,
- bpf_core_type_id_kernel(struct sockaddr_un));
+ sa_kern_unaddr = bpf_core_cast(sa_kern->uaddr, struct sockaddr_un);
if (memcmp(sa_kern_unaddr->sun_path, SERVUN_REWRITE_ADDRESS,
sizeof(SERVUN_REWRITE_ADDRESS) - 1) != 0)
return 0;