aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorGravatar Yunjian Wang <wangyunjian@huawei.com> 2020-12-29 10:01:48 +0800
committerGravatar Jakub Kicinski <kuba@kernel.org> 2021-01-04 13:18:52 -0800
commit01e31bea7e622f1890c274f4aaaaf8bccd296aa5 (patch)
tree2921fb5f2a2e41f54389133e5dbf0b26593422a5 /Documentation
parentbareudp: Fix use of incorrect min_headroom size (diff)
downloadlinux-01e31bea7e622f1890c274f4aaaaf8bccd296aa5.tar.gz
linux-01e31bea7e622f1890c274f4aaaaf8bccd296aa5.tar.bz2
linux-01e31bea7e622f1890c274f4aaaaf8bccd296aa5.zip
vhost_net: fix ubuf refcount incorrectly when sendmsg fails
Currently the vhost_zerocopy_callback() maybe be called to decrease the refcount when sendmsg fails in tun. The error handling in vhost handle_tx_zerocopy() will try to decrease the same refcount again. This is wrong. To fix this issue, we only call vhost_net_ubuf_put() when vq->heads[nvq->desc].len == VHOST_DMA_IN_PROGRESS. Fixes: bab632d69ee4 ("vhost: vhost TX zero-copy support") Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Acked-by: Willem de Bruijn <willemb@google.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/1609207308-20544-1-git-send-email-wangyunjian@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions