summaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorLi Qiang <liqiang01@kylinos.cn>2025-10-15 15:55:30 +0800
committerMark Brown <broonie@kernel.org>2025-10-15 19:53:20 +0100
commit5726b68473f7153a7f6294185e5998b7e2a230a2 (patch)
tree17fe8d1e0d26ca7b67ae2f032e97e382b95a489c /scripts/bpf_doc.py
parent7a37291ed40a33a5f6c3d370fdde5ee0d8f7d0e4 (diff)
ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails
devm_kasprintf() may return NULL on memory allocation failure, but the debug message prints cpus->dai_name before checking it. Move the dev_dbg() call after the NULL check to prevent potential NULL pointer dereference. Fixes: cb8ea62e64020 ("ASoC: amd/sdw_utils: add sof based soundwire generic machine driver") Signed-off-by: Li Qiang <liqiang01@kylinos.cn> Link: https://patch.msgid.link/20251015075530.146851-1-liqiang01@kylinos.cn Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions