Bug 219936

Summary: Missing null check mt7925_thermal_init
Product: Drivers Reporter: henry (bsdhenrymartin)
Component: network-wirelessAssignee: drivers_network-wireless (drivers_network-wireless)
Status: NEW ---    
Severity: normal    
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

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.