Bug 219936 - Missing null check mt7925_thermal_init
Summary: Missing null check mt7925_thermal_init
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: drivers_network-wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-28 08:22 UTC by henry
Modified: 2025-03-28 08:22 UTC (History)
0 users

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


Attachments

Description henry 2025-03-28 08:22:27 UTC
net: wireless: mediatek: mt76: mt7925 Add NULL check in mt7925_thermal_init

devm_kasprintf() can return a NULL pointer on failure,but var "name"
returned value in mt7925_thermal_init is not checked.

Add NULL check in mt7925_thermal_init, to handle kernel NULL pointer dereference error. This is similar to the commit 050b23d081da.

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