Commit c8c3f8e7 authored by Will Pierce's avatar Will Pierce Committed by Greg Kroah-Hartman
Browse files

riscv: Use kvmalloc_array on relocation_hashtable



[ Upstream commit 8578b2f7 ]

The number of relocations may be a huge value that is unallocatable
by kmalloc. Use kvmalloc instead so that it does not fail.

Fixes: 8fd6c514 ("riscv: Add remaining module relocations")
Suggested-by: default avatarClément Léger <cleger@rivosinc.com>
Reviewed-by: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: default avatarWill Pierce <wgpierce17@gmail.com>
Link: https://lore.kernel.org/r/20250402081426.5197-1-wgpierce17@gmail.com


Signed-off-by: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cfdcd213
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment