linux-stable/drivers/crypto/qat
Andy Shevchenko fffe799b6c crypto: qat - don't cast parameter in bit operations
While in this particular case it would not be a (critical) issue,
the pattern itself is bad and error prone in case the location
of the parameter is changed.

Don't cast parameter to unsigned long pointer in the bit operations.
Instead copy to a local variable on stack of a proper type and use.

Fixes: b4b7e67c91 ("crypto: qat - Intel(R) QAT ucode part of fw loader")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2022-02-18 16:21:08 +11:00
..
qat_4xxx crypto: qat - fix a signedness bug in get_service_enabled() 2022-01-28 16:51:11 +11:00
qat_c3xxx crypto: qat - store the ring-to-service mapping 2021-12-24 14:18:26 +11:00
qat_c3xxxvf crypto: qat - config VFs based on ring-to-svc mapping 2021-12-24 14:18:27 +11:00
qat_c62x crypto: qat - store the ring-to-service mapping 2021-12-24 14:18:26 +11:00
qat_c62xvf crypto: qat - config VFs based on ring-to-svc mapping 2021-12-24 14:18:27 +11:00
qat_common crypto: qat - don't cast parameter in bit operations 2022-02-18 16:21:08 +11:00
qat_dh895xcc crypto: qat - store the ring-to-service mapping 2021-12-24 14:18:26 +11:00
qat_dh895xccvf crypto: qat - config VFs based on ring-to-svc mapping 2021-12-24 14:18:27 +11:00
Kconfig crypto: qat - introduce support for PFVF block messages 2021-12-24 14:18:26 +11:00
Makefile crypto: qat - add qat_4xxx driver 2020-11-20 14:45:34 +11:00