diff options
author | Christian Brauner <brauner@kernel.org> | 2023-11-30 13:49:10 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-12-12 14:24:14 +0100 |
commit | eac9189c96196574a83a553ca5a7543dd9f5fe3e (patch) | |
tree | c85c66f053f75a511febc04d949b9bbe7f27620e /net/compat.c | |
parent | 372a34e66fb7f95124fadae9c600b231c35696a7 (diff) | |
download | lwn-eac9189c96196574a83a553ca5a7543dd9f5fe3e.tar.gz lwn-eac9189c96196574a83a553ca5a7543dd9f5fe3e.zip |
file: stop exposing receive_fd_user()
Not every subsystem needs to have their own specialized helper.
Just us the __receive_fd() helper.
Link: https://lore.kernel.org/r/20231130-vfs-files-fixes-v1-4-e73ca6f4ea83@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'net/compat.c')
-rw-r--r-- | net/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/compat.c b/net/compat.c index 6564720f32b7..485db8ee9b28 100644 --- a/net/compat.c +++ b/net/compat.c @@ -297,7 +297,7 @@ void scm_detach_fds_compat(struct msghdr *msg, struct scm_cookie *scm) int err = 0, i; for (i = 0; i < fdmax; i++) { - err = receive_fd_user(scm->fp->fp[i], cmsg_data + i, o_flags); + err = scm_recv_one_fd(scm->fp->fp[i], cmsg_data + i, o_flags); if (err < 0) break; } |