aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2021-04-15 08:55:22 +0000
committerPalmer Dabbelt <[email protected]>2021-05-01 15:53:19 +0000
commit533b4f3a789d49574e7ae0f6ececed153f651f97 (patch)
treebb99835bd7b2348a2d0cca7b26ccd3f70ae96b56 /drivers/net/xen-netback/interface.c
parentRISC-V: Enable Microchip PolarFire ICICLE SoC (diff)
downloadkernel-533b4f3a789d49574e7ae0f6ececed153f651f97.tar.gz
kernel-533b4f3a789d49574e7ae0f6ececed153f651f97.zip
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 <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions