diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2024-03-21 16:08:45 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-03-22 19:42:20 +0800 |
commit | 5a7e89d3315d1be86aff8a8bf849023cda6547f7 (patch) | |
tree | 14821ab7cd2fb3e7f54a9452f559c254f7694e42 /tools/perf/scripts/python/bin/export-to-sqlite-report | |
parent | 203a6763ab699da0568fd2b76303d03bb121abd4 (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions