Commit caf4b347 authored by Charles Han's avatar Charles Han Committed by Felix Fietkau
Browse files

wifi: mt76: mt7996: Add NULL check in mt7996_thermal_init



devm_kasprintf() can return a NULL pointer on failure,but this
returned value in mt7996_thermal_init() is not checked.
Add NULL check in mt7996_thermal_init(), to handle kernel NULL
pointer dereference error.

Fixes: 69d54ce7 ("wifi: mt76: mt7996: switch to single multi-radio wiphy")
Signed-off-by: default avatarCharles Han <hanchunchao@inspur.com>
Link: https://patch.msgid.link/20250407095551.32127-1-hanchunchao@inspur.com


Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent cadebdad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment