vhost/crypto: fix incorrect bracket location
PATCH 1/1 vhost/crypto: fix incorrect bracket location
Coverity issue: 277232
Coverity issue: 277237
Fixes 3bb595ecd682 ("vhost/crypto: add request handler")
Signed-off-by Fan Zhang <[email protected]>
--- lib/librte_vhost/vhost_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/librte_vhost/vhost_crypto.c +2 -2
@@ -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
Quoted 8 lines · Fan Zhang
Coverity issue: 277232
Coverity issue: 277237Fixes 3bb595ecd682 ("vhost/crypto: add request handler")Signed-off-by Fan Zhang <[email protected]>--- lib/librte_vhost/vhost_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Maxime Coquelin <[email protected]>
Thanks,
Maxime