crypto/qat: fix null auth when using VFIO
authorDamian Nowak <damianx.nowak@intel.com>
Fri, 9 Aug 2019 09:29:01 +0000 (11:29 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 23 Oct 2019 14:57:06 +0000 (16:57 +0200)
commit65beb9abca6dbb2167a53ab31d79e03f0857357b
tree666cecb4b1373ad811e3cd8073b78e1d717bb99a
parentec73bcf3fac4d6aa209a43f9d858826a4b18fbc8
crypto/qat: fix null auth when using VFIO

When running auth NULL cases while using
vfio_pci, DMAR read/write faults appear. It
happens even if digest_length is set to 0.
This is caused by auth_res_addr initialized
as 0x0.

Fixes: 4e0955bddb08 ("crypto/qat: fix null auth algo overwrite")
Cc: stable@dpdk.org
Signed-off-by: Damian Nowak <damianx.nowak@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_sym.c