Re: [PATCH net v6] vhost_net: fix ubuf refcount incorrectly when sendmsg fails

2021-01-04 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Tue, 29 Dec 2020 10:01:48 +0800 you wrote: > From: Yunjian Wang > > Currently the vhost_zerocopy_callback() maybe be called to decrease > the refcount when sendmsg fails in tun. The error handling in vhost > handle_tx_zeroc

[PATCH net v6] vhost_net: fix ubuf refcount incorrectly when sendmsg fails

2020-12-28 Thread wangyunjian
From: Yunjian Wang 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