Bug 219945 - Missing null check with the value returned by ap_cp_unique_name
Summary: Missing null check with the value returned by ap_cp_unique_name
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Platform (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: drivers_platform@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-28 09:09 UTC by henry
Modified: 2025-03-28 09:09 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description henry 2025-03-28 09:09:59 UTC
clk: mvebu: Add NULL check with the value returned by ap_cp_unique_name

devm_kasprintf() can return a NULL pointer on failure, but this returned value by ap_cp_unique_name is not checked.

Add NULL check after ap_cp_unique_name, to handle kernel NULL pointer dereference error.

Note You need to log in before you can comment on or make changes to this bug.