From 22606a96e9d8b1a0678cf812cbc7310963721125 Mon Sep 17 00:00:00 2001 From: Gosia Bakota Date: Wed, 12 Jun 2019 18:31:41 +0100 Subject: [PATCH] crypto/qat: set message field to zero in sym SGL case Fixes: e09231eaa2af ("crypto/qat: add SGL capability") Cc: stable@dpdk.org Signed-off-by: Gosia Bakota Acked-by: Fiona Trahe --- drivers/crypto/qat/qat_sym.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/qat/qat_sym.c b/drivers/crypto/qat/qat_sym.c index 8801ca5674..7515a55d02 100644 --- a/drivers/crypto/qat/qat_sym.c +++ b/drivers/crypto/qat/qat_sym.c @@ -530,6 +530,8 @@ qat_sym_build_request(void *in_op, uint8_t *out_msg, qat_req->comn_mid.dest_data_addr = cookie->qat_sgl_dst_phys_addr; } + qat_req->comn_mid.src_length = 0; + qat_req->comn_mid.dst_length = 0; } else { qat_req->comn_mid.src_data_addr = src_buf_start; qat_req->comn_mid.dest_data_addr = dst_buf_start; -- 2.20.1