Merge branch 'io_uring-zerocopy-send' of git://git.kernel.org/pub/scm/linux/kernel/git/kuba/linux

Pull in Pavel's patch from a shared branch.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Jakub Kicinski 2022-07-22 14:53:33 -07:00
commit 3c47fb2f4c
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ int __zerocopy_sg_from_iter(struct msghdr *msg, struct sock *sk,
{ {
int frag; int frag;
if (msg && msg->sg_from_iter) if (msg && msg->msg_ubuf && msg->sg_from_iter)
return msg->sg_from_iter(sk, skb, from, length); return msg->sg_from_iter(sk, skb, from, length);
frag = skb_shinfo(skb)->nr_frags; frag = skb_shinfo(skb)->nr_frags;