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

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


Attachments

Description henry 2025-03-28 08:30:40 UTC
net: wireless: mediatek: mt76: mt7925 Add NULL check in mt7996_thermal_init

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

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

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