aboutsummaryrefslogtreecommitdiff
path: root/lib/test_objagg.c
diff options
context:
space:
mode:
authorAnup Patel2021-04-15 14:25:22 +0530
committerPalmer Dabbelt2021-05-01 08:53:19 -0700
commit533b4f3a789d49574e7ae0f6ececed153f651f97 (patch)
treebb99835bd7b2348a2d0cca7b26ccd3f70ae96b56 /lib/test_objagg.c
parent2951162094e61f574b0ddf886c783ace65049450 (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 'lib/test_objagg.c')
0 files changed, 0 insertions, 0 deletions