crypto: qat - return error when failing to map FW
authorJack Xu <jack.xu@intel.com>
Mon, 17 May 2021 09:13:12 +0000 (05:13 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 May 2021 06:20:40 +0000 (14:20 +0800)
commitfc9818e6c54d19f1189bbda906042af3aaf93d80
tree0bf81338b9eb2c804c2843c3d008b3ac9703f999
parenta6f8e68e238a15bb15f1726b35c695136c64eaba
crypto: qat - return error when failing to map FW

Save the return value of qat_uclo_map_auth_fw() function so that the
function qat_uclo_wr_mimage() could return the correct value.
This way, the procedure of adf_gen2_ae_fw_load() function could stop
and exit properly by checking the return value of qat_uclo_wr_mimage().

Signed-off-by: Jack Xu <jack.xu@intel.com>
Co-developed-by: Zhehui Xiang <zhehui.xiang@intel.com>
Signed-off-by: Zhehui Xiang <zhehui.xiang@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_uclo.c