aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorTom Zanussi <[email protected]>2024-03-21 21:08:45 +0000
committerHerbert Xu <[email protected]>2024-03-22 11:42:20 +0000
commit5a7e89d3315d1be86aff8a8bf849023cda6547f7 (patch)
tree14821ab7cd2fb3e7f54a9452f559c254f7694e42 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentRevert "crypto: pkcs7 - remove sha1 support" (diff)
downloadkernel-5a7e89d3315d1be86aff8a8bf849023cda6547f7.tar.gz
kernel-5a7e89d3315d1be86aff8a8bf849023cda6547f7.zip
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: <[email protected]> # v6.8+ Reported-by: Jerry Snitselaar <[email protected]> Signed-off-by: Tom Zanussi <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions