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.pocza...@intel.com>
Signed-off-by: David Marchand <david.march...@redhat.com>
---
  lib/vhost/vhost_crypto.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)


Applied to dpdk-next-virtio/main.

Thanks,
Maxime

Reply via email to