]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: convert __bpf_prog_get() to CLASS(fd, ...)
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 30 Jul 2024 05:16:02 +0000 (01:16 -0400)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 13 Aug 2024 22:57:53 +0000 (15:57 -0700)
commitd71973707efe8522b1f95189113273d3d5652808
treef991ccb5704f2469ee95ef028611256b28d873b2
parent50470d3899cdf06fd58def74dec87f31e13cda6f
bpf: convert __bpf_prog_get() to CLASS(fd, ...)

Irregularity here is fdput() not in the same scope as fdget();
just fold ____bpf_prog_get() into its (only) caller and that's
it...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
kernel/bpf/syscall.c