[PW_SID:1088820] riscv: cpuinfo: Fix NULL dereference and inconsistent error code#1857
[PW_SID:1088820] riscv: cpuinfo: Fix NULL dereference and inconsistent error code#1857linux-riscv-bot wants to merge 1 commit into
Conversation
Fix a potential NULL pointer dereference in c_show() by ensuring the device tree node returned by of_get_cpu_node() is checked before use. Also replace a non-standard return value (-1) in riscv_of_parent_hartid() with -ENODEV to follow Linux kernel conventions for "not found" error returns. Both issues improve robustness and consistency with existing RISC-V CPU info handling code. Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
|
Patch 1: "riscv: cpuinfo: Fix NULL dereference and inconsistent error code" |
PR for series 1088820 applied to workflow__riscv__fixes
Name: riscv: cpuinfo: Fix NULL dereference and inconsistent error code
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1088820
Version: 1