Bug 219945

Summary: Missing null check with the value returned by ap_cp_unique_name
Product: Drivers Reporter: henry (bsdhenrymartin)
Component: PlatformAssignee: drivers_platform (drivers_platform)
Status: NEW ---    
Severity: normal    
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

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.