linux/drivers/crypto/intel
Tom Zanussi 5a7e89d331 crypto: iaa - Fix nr_cpus < nr_iaa case
If nr_cpus < nr_iaa, the calculated cpus_per_iaa will be 0, which
causes a divide-by-0 in rebalance_wq_table().

Make sure cpus_per_iaa is 1 in that case, and also in the nr_iaa == 0
case, even though cpus_per_iaa is never used if nr_iaa == 0, for
paranoia.

Cc: <stable@vger.kernel.org> # v6.8+
Reported-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2024-03-22 19:42:20 +08:00
..
iaa crypto: iaa - Fix nr_cpus < nr_iaa case 2024-03-22 19:42:20 +08:00
ixp4xx crypto: intel/ixp4xx-crypto - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
keembay crypto: intel/keembay-ocs-hcu - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
qat crypto: qat - make ring to service map common for QAT GEN4 2024-02-24 08:41:20 +08:00
Kconfig crypto: iaa - Add Intel IAA Compression Accelerator crypto driver core 2023-12-15 17:52:53 +08:00
Makefile crypto: iaa - Add Intel IAA Compression Accelerator crypto driver core 2023-12-15 17:52:53 +08:00