vhost/crypto: fix bracket
PATCH 1/1 vhost/crypto: fix bracket
Coverity issue: 233232
Coverity issue: 233237
Fixes 3bb595ecd682 ("vhost/crypto: add request handler")
Signed-off-by Fan Zhang <[email protected]>
--- lib/librte_vhost/vhost_crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
lib/librte_vhost/vhost_crypto.c +1 -2
@@ -675,8 +675,7 @@ 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 9 lines · Fan Zhang
Coverity issue: 233232
Coverity issue: 233237Fixes 3bb595ecd682 ("vhost/crypto: add request handler")Signed-off-by Fan Zhang <[email protected]>--- lib/librte_vhost/vhost_crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by Maxime Coquelin <[email protected]>
Thanks,
Maxime
30/04/2018 12:36, Fan Zhang:
Quoted 5 lines
Coverity issue: 233232
Coverity issue: 233237Fixes 3bb595ecd682 ("vhost/crypto: add request handler")Signed-off-by Fan Zhang <[email protected]>
2 comments, Fan:
1/ I think it the v2 of a previous commit. Please update the patchwork status (superseded), use -v option for revision numbering,
and add a changelog.
2/ The title must give the scope of the change, or give an idea of the impact of the patch. Example:
fix symmetric ciphering
The root cause (bracket location) is better in the commit message than the title.
Thanks
Maxime Coquelin
AppliedQuoted 9 lines · Fan Zhang
Coverity issue: 233232
Coverity issue: 233237Fixes 3bb595ecd682 ("vhost/crypto: add request handler")Signed-off-by Fan Zhang <[email protected]>--- lib/librte_vhost/vhost_crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Applied to dpdk-next-virtio/master with changes suggested by Thomas.
Thanks,
Maxime