Skip to contentSkip to conversation

vhost/crypto: fix incorrect bracket location

PATCH In review Fan Zhang 2 participants 2 messages Apr 30, 2018

lore
Share & tools
lore

Fan Zhang

author
#0 lore raw

PATCH 1/1 vhost/crypto: fix incorrect bracket location

Coverity issue: 277232
Coverity issue: 277237

Fixes 3bb595ecd682 ("vhost/crypto: add request handler")
---
 lib/librte_vhost/vhost_crypto.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/librte_vhost/vhost_crypto.c +2 -2
index c38eb3bb5..3fa50281c 100644
@@ -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;
 		}
Signature · 1 line
2.13.6