]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: more trivial fdget() conversions
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 30 Jul 2024 05:16:10 +0000 (01:16 -0400)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 13 Aug 2024 22:58:25 +0000 (15:58 -0700)
commiteceb7b33e5f3bc1e60047d8695cb937b93a08ced
tree3e2fd744a8907ab047718ec002c21ea830cb27d9
parenteb80ee85801cd8e3c6f39b08830867d2afecd8f5
bpf: more trivial fdget() conversions

All failure exits prior to fdget() leave the scope, all matching fdput()
are immediately followed by leaving the scope.

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