diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-07-12 23:52:29 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-20 00:20:42 +0300 |
commit | 7c701d92b2b5e5175dbfec875816474b802b0c45 (patch) | |
tree | 974616dd04936290206960cea47e7366b1bc0392 /net/compat.c | |
parent | 2e07a521e1e424787af3bfc59615de4220856c35 (diff) | |
download | linux-7c701d92b2b5e5175dbfec875816474b802b0c45.tar.xz |
skbuff: carry external ubuf_info in msghdr
Make possible for network in-kernel callers like io_uring to pass in a
custom ubuf_info by setting it in a new field of struct msghdr.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/compat.c')
-rw-r--r-- | net/compat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/compat.c b/net/compat.c index 210fc3b4d0d8..6cd2e7683dd0 100644 --- a/net/compat.c +++ b/net/compat.c @@ -80,6 +80,7 @@ int __get_compat_msghdr(struct msghdr *kmsg, return -EMSGSIZE; kmsg->msg_iocb = NULL; + kmsg->msg_ubuf = NULL; *ptr = msg.msg_iov; *len = msg.msg_iovlen; return 0; |