diff options
author | Henry Martin <bsdhenrymartin@gmail.com> | 2025-06-25 15:49:01 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2025-07-07 19:05:52 +0300 |
commit | 03ee8f73801a8f46d83dfc2bf73fb9ffa5a21602 (patch) | |
tree | 50a59ec92ec0721b951d7619ab0610352dca877e /scripts/gdb/linux/interrupts.py | |
parent | dedf2ec30fe417d181490896adf89cd6b9885b23 (diff) | |
download | linux-03ee8f73801a8f46d83dfc2bf73fb9ffa5a21602.tar.xz |
wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init()
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@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>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions