[PATCH] vhost/crypto: fix descriptor processing
Maxime Coquelin
maxime.coquelin at redhat.com
Wed Jun 22 19:14:01 CEST 2022
On 6/22/22 17:30, David Marchand wrote:
> copy_data was returning a pointer to an increased (off by one) descriptor.
> Subsequent calls to copy_data in the library were then failing.
> Fix this by incrementing the descriptor only if there is some left data
> to copy.
>
> Fixes: 7287660a21e0 ("vhost/crypto: fix build with GCC 12")
>
> Reported-by: Jakub Poczatek <jakub.poczatek at intel.com>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
> lib/vhost/vhost_crypto.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
Applied to dpdk-next-virtio/main.
Thanks,
Maxime
More information about the dev
mailing list