[PW_SID:1088823] riscv: cpuinfo: Fix NULL dereference and inconsistent error code#1858
[PW_SID:1088823] riscv: cpuinfo: Fix NULL dereference and inconsistent error code#1858linux-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. v2: Add missing Signed-off-by Signed-off-by: Mohamed Ayman <mohamedaymanworkspace@gmail.com> 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 1088823 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=1088823
Version: 1