numam-dpdk/lib/vhost
David Marchand 2fbada9154 vhost/crypto: fix descriptor processing
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: 4414bb6701 ("vhost/crypto: fix build with GCC 12")
Cc: stable@dpdk.org

Reported-by: Jakub Poczatek <jakub.poczatek@intel.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Tested-by: Jakub Poczatek <jakub.poczatek@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
2022-06-22 18:58:31 +02:00
..
fd_man.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
fd_man.h lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
iotlb.c remove unnecessary null checks 2022-02-12 12:07:48 +01:00
iotlb.h vhost: improve IOTLB logs 2022-01-27 09:44:31 +01:00
meson.build vhost: integrate dmadev in asynchronous data-path 2022-02-10 15:59:17 +01:00
rte_vdpa.h vhost: add missing C++ guards 2022-02-22 14:47:49 +01:00
rte_vhost_async.h vhost: support clear in-flight packets for async dequeue 2022-06-17 15:19:57 +02:00
rte_vhost_crypto.h vhost: add missing C++ guards 2022-02-22 14:47:49 +01:00
rte_vhost.h replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
socket.c vhost: get vDPA device type 2022-06-01 11:50:10 +02:00
vdpa_driver.h vhost: get vDPA device type 2022-06-01 11:50:10 +02:00
vdpa.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
version.map vhost: support clear in-flight packets for async dequeue 2022-06-17 15:19:57 +02:00
vhost_crypto.c vhost/crypto: fix descriptor processing 2022-06-22 18:58:31 +02:00
vhost_user.c vhost: support vhost message for get/set config 2022-06-01 11:50:09 +02:00
vhost_user.h vhost: remove unneeded header includes 2022-06-21 16:46:57 +02:00
vhost.c vhost: add runtime locking check in unsafe API 2022-06-01 11:50:09 +02:00
vhost.h vhost: remove unneeded header includes 2022-06-21 16:46:57 +02:00
virtio_crypto.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
virtio_net.c vhost: fix log message for async dequeue 2022-06-17 16:01:21 +02:00