Bug 219944 - Missing null check in raspberrypi_clk_register
Summary: Missing null check in raspberrypi_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 09:02 UTC by henry
Modified: 2025-03-28 09:02 UTC (History)
0 users

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


Attachments

Description henry 2025-03-28 09:02:20 UTC
clk: bcm: clk-raspberrypi: Add NULL check in raspberrypi_clk_register

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

Add NULL check in raspberrypi_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.