Re: [PATCH] vringh: don't use vringh_kiov_advance() in vringh_iov_xfer()
From: patchwork-bot+netdevbpf@kernel.org
Date: 2023-10-04 07:30:29
Also in:
kvm, lkml
From: patchwork-bot+netdevbpf@kernel.org
Date: 2023-10-04 07:30:29
Also in:
kvm, lkml
Hello: This patch was applied to netdev/net.git (main) by David S. Miller [off-list ref]: On Mon, 25 Sep 2023 12:30:57 +0200 you wrote:
In the while loop of vringh_iov_xfer(), `partlen` could be 0 if one of
the `iov` has 0 lenght.
In this case, we should skip the iov and go to the next one.
But calling vringh_kiov_advance() with 0 lenght does not cause the
advancement, since it returns immediately if asked to advance by 0 bytes.
Let's restore the code that was there before commit b8c06ad4d67d
("vringh: implement vringh_kiov_advance()"), avoiding using
vringh_kiov_advance().
[...]
Here is the summary with links:
- vringh: don't use vringh_kiov_advance() in vringh_iov_xfer()
https://git.kernel.org/netdev/net/c/7aed44babc7f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html