[PATCH] RISC-V: Fix error code returned by riscv_hartid_to_cpuid()