crypto/qat: set message field to zero in sym SGL case

Fixes: e09231eaa2 ("crypto/qat: add SGL capability")
Cc: stable@dpdk.org

Signed-off-by: Gosia Bakota <gosia.bakota@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
This commit is contained in:
Gosia Bakota 2019-06-12 18:31:41 +01:00 committed by Akhil Goyal
parent a1f42a9dd7
commit 22606a96e9

View File

@ -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;