This patch fixes the redundant descriptor move in the copy mode
of vhost crypto. Originally the redundant descriptor move will
cause the message parsing error.
Fixes:
3bb595ecd682 ("vhost/crypto: add request handler")
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
op->sym->auth.digest.data = digest_addr;
op->sym->auth.digest.phys_addr = rte_pktmbuf_iova_offset(m_dst,
digest_offset);
- if (unlikely(move_desc(head, &desc,
- chain->para.hash_result_len) < 0)) {
- ret = VIRTIO_CRYPTO_ERR;
- goto error_exit;
- }
break;
default:
ret = VIRTIO_CRYPTO_BADMSG;