linux-yocto/drivers/net/wireless
Henry Martin 1bbdf42137 wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init()
[ Upstream commit 03ee8f7380 ]

devm_kasprintf() returns NULL on error. Currently, mt7925_thermal_init()
does not check for this case, which results in a NULL pointer
dereference.

Add NULL check after devm_kasprintf() to prevent this issue.

Fixes: 396e41a74a ("wifi: mt76: mt7925: support temperature sensor")
Signed-off-by: Henry Martin <bsdhenryma@tencent.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20250625124901.1839832-1-bsdhenryma@tencent.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-17 18:37:17 +02:00
..
admtek
ath wifi: ath6kl: remove WARN on bad firmware input 2025-07-10 16:05:08 +02:00
atmel wifi: at76c50x: fix use after free access in at76_disconnect 2025-04-25 10:47:37 +02:00
broadcom wifi: brcm80211: fmac: Add error handling for brcmf_usb_dl_writeimage() 2025-05-09 09:50:32 +02:00
intel wifi: iwlwifi: Add missing MODULE_FIRMWARE for Qu-c0-jf-b0 2025-06-27 11:11:33 +01:00
intersil wifi: p54: prevent buffer-overflow in p54_rx_eeprom_readback() 2025-06-27 11:11:14 +01:00
marvell wifi: mwifiex: discard erroneous disassoc frames on STA interface 2025-07-17 18:37:10 +02:00
mediatek wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init() 2025-07-17 18:37:17 +02:00
microchip
purelifi wireless: purelifi: plfxlc: fix memory leak in plfxlc_usb_wreq_asyn() 2025-06-27 11:11:31 +01:00
quantenna
ralink wifi: rt2x00: fix remove callback type mismatch 2025-07-17 18:37:17 +02:00
realtek wifi: rtw89: phy: add dummy C2H event handler for report of TAS power 2025-06-27 11:11:39 +01:00
rsi
silabs
st
ti wifi: wl1251: fix memory leak in wl1251_tx_work 2025-04-25 10:47:37 +02:00
virtual wifi: mac80211_hwsim: Prevent tsf from setting if beacon is disabled 2025-06-27 11:11:33 +01:00
zydas wifi: zd1211rw: Fix potential NULL pointer dereference in zd_mac_tx_to_dev() 2025-07-17 18:37:16 +02:00
Kconfig
Makefile