aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorCharles Han <hanchunchao@inspur.com>2025-08-15 10:42:06 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-08-18 18:10:15 +0200
commit7459e87ae1d78ba27b728172fa2aa912a5b8640d (patch)
tree5582251b792b40c556e00b14194ccf77ef79a0e7 /tools/perf/scripts/python
parentACPI: APEI: EINJ: Check if user asked for EINJV2 injection (diff)
downloadwireguard-linux-7459e87ae1d78ba27b728172fa2aa912a5b8640d.tar.xz
wireguard-linux-7459e87ae1d78ba27b728172fa2aa912a5b8640d.zip
ACPI: APEI: EINJ: fix potential NULL dereference in __einj_error_inject()
The __einj_error_inject() function allocates memory via kmalloc() without checking for allocation failure, which could lead to a NULL pointer dereference. Return -ENOMEM in case allocation fails. Fixes: b47610296d17 ("ACPI: APEI: EINJ: Enable EINJv2 error injections") Signed-off-by: Charles Han <hanchunchao@inspur.com> Reviewed-by: Tony Luck <tony.luck@intel.com> Reviewed-by: Hanjun Guo <guohanjun@huawei.com> Link: https://patch.msgid.link/20250815024207.3038-1-hanchunchao@inspur.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions