Bug 219943 - Missing null check in davinci_lpsc_clk_register
Summary: Missing null check in davinci_lpsc_clk_register
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 08:58 UTC by henry
Modified: 2025-03-28 08:58 UTC (History)
0 users

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


Attachments

Description henry 2025-03-28 08:58:47 UTC
clk: davinci: psc: Add NULL check in davinci_lpsc_clk_register

devm_kasprintf() can return a NULL pointer on failure, but this returned value in davinci_lpsc_clk_registeris not checked.

Add NULL check in davinci_lpsc_clk_register, to handle kernel NULL pointer dereference error.

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