[PATCH 6.12 077/223] riscv: module: Fix out-of-bounds relocation access