diff options
author | Anup Patel <anup.patel@wdc.com> | 2021-04-15 14:25:22 +0530 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-05-01 08:53:19 -0700 |
commit | 533b4f3a789d49574e7ae0f6ececed153f651f97 (patch) | |
tree | bb99835bd7b2348a2d0cca7b26ccd3f70ae96b56 /crypto/crypto_null.c | |
parent | 2951162094e61f574b0ddf886c783ace65049450 (diff) |
RISC-V: Fix error code returned by riscv_hartid_to_cpuid()
We should return a negative error code upon failure in
riscv_hartid_to_cpuid() instead of NR_CPUS. This is also
aligned with all uses of riscv_hartid_to_cpuid() which
expect negative error code upon failure.
Fixes: 6825c7a80f18 ("RISC-V: Add logical CPU indexing for RISC-V")
Fixes: f99fb607fb2b ("RISC-V: Use Linux logical CPU number instead of hartid")
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'crypto/crypto_null.c')
0 files changed, 0 insertions, 0 deletions