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:
commit
3c47fb2f4c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue