[PATCH v1] wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init()
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Wed Jun 25 06:42:40 PDT 2025
Il 25/06/25 14:49, Henry Martin ha scritto:
> 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: 396e41a74a88 ("wifi: mt76: mt7925: support temperature sensor")
> Signed-off-by: Henry Martin <bsdhenryma at tencent.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
More information about the Linux-mediatek
mailing list