Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: qat - remove redundant FW image size check

The FW image size check is already performed in the function
qat_uclo_check_image() before calling `qat_uclo_map_auth_fw()`.
Therefore, the additional check in `qat_uclo_map_auth_fw()` is redundant
and can be safely removed.

Signed-off-by: Jack Xu <jack.xu@intel.com>
Reviewed-by: Ahsan Atta <ahsan.atta@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Jack Xu and committed by
Herbert Xu
0d5cb730 bd2c6e0e

-4
-4
drivers/crypto/intel/qat/qat_common/qat_uclo.c
··· 1418 1418 struct icp_qat_simg_ae_mode *simg_ae_mode; 1419 1419 struct icp_firml_dram_desc img_desc; 1420 1420 1421 - if (size > (ICP_QAT_AE_IMG_OFFSET(handle) + ICP_QAT_CSS_RSA4K_MAX_IMAGE_LEN)) { 1422 - pr_err("QAT: error, input image size overflow %d\n", size); 1423 - return -EINVAL; 1424 - } 1425 1421 length = (css_hdr->fw_type == CSS_AE_FIRMWARE) ? 1426 1422 ICP_QAT_CSS_AE_SIMG_LEN(handle) + simg_offset : 1427 1423 size + ICP_QAT_CSS_FWSK_PAD_LEN(handle) + simg_offset;