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 <roy.fan.zhang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
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;
}