diff options
author | Christian Brauner <brauner@kernel.org> | 2023-11-30 15:49:10 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-12-12 16:24:14 +0300 |
commit | eac9189c96196574a83a553ca5a7543dd9f5fe3e (patch) | |
tree | c85c66f053f75a511febc04d949b9bbe7f27620e /net/core/scm.c | |
parent | 372a34e66fb7f95124fadae9c600b231c35696a7 (diff) | |
download | linux-eac9189c96196574a83a553ca5a7543dd9f5fe3e.tar.xz |
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/core/scm.c')
-rw-r--r-- | net/core/scm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/scm.c b/net/core/scm.c index 880027ecf516..eec78e312550 100644 --- a/net/core/scm.c +++ b/net/core/scm.c @@ -319,7 +319,7 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) } 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; } |