From: Fan Zhang Date: Mon, 30 Apr 2018 10:31:17 +0000 (+0100) Subject: vhost/crypto: fix symmetric ciphering X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dc3530ec0d246d538395046c735fbb21b7192380;p=dpdk.git vhost/crypto: fix symmetric ciphering A bracket was misplaced in a condition check, this patch fixes it. Coverity issue: 277232, 277237 Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") Signed-off-by: Fan Zhang Reviewed-by: Maxime Coquelin --- diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c index 7396ddd1ef..04ff8cd489 100644 --- a/lib/librte_vhost/vhost_crypto.c +++ b/lib/librte_vhost/vhost_crypto.c @@ -675,8 +675,8 @@ prepare_sym_cipher_op(struct vhost_crypto *vcrypto, struct rte_crypto_op *op, goto error_exit; } if (unlikely(copy_data(rte_pktmbuf_mtod(m_src, uint8_t *), head, - mem, &desc, cipher->para.src_data_len)) - < 0) { + mem, &desc, cipher->para.src_data_len) + < 0)) { ret = VIRTIO_CRYPTO_BADMSG; goto error_exit; }