android_kernel_motorola_sm6375/drivers/infiniband
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yury Norov [NVIDIA] 9bba1a9994 RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()
[ Upstream commit 59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a ]

The function divides number of online CPUs by num_core_siblings, and
later checks the divider by zero. This implies a possibility to get
and divide-by-zero runtime error. Fix it by moving the check prior to
division. This also helps to save one indentation level.

Signed-off-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>
Link: https://patch.msgid.link/20250604193947.11834-3-yury.norov@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-28 16:21:28 +02:00
..
core RDMA/core: Rate limit GID cache warning messages 2025-08-28 16:21:17 +02:00
hw RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask() 2025-08-28 16:21:28 +02:00
sw RDMA/rxe: Fix slab-use-after-free Read in rxe_queue_cleanup bug 2025-06-04 14:32:28 +02:00
ulp
Kconfig
Makefile