summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorAjay Kumar Nandam <ajay.nandam@oss.qualcomm.com>2026-09-23 22:03:38 +0530
committerMark Brown <broonie@kernel.org>2026-10-06 17:37:52 +0200
commitbe2172758f2b7c801ae80b9c8d1510b31eeffdaa (patch)
treef6f5bd8fc33787bafe9f15117e1bcb668e50c994 /tools/perf/scripts/python/task-analyzer.py
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
ASoC: qcom: q6apm: clear g_apm on driver removal
The global g_apm pointer is set during apm_probe() but never cleared in apm_remove(). After the driver is removed the devm-managed struct q6apm is freed, leaving g_apm dangling. A subsequent call to q6apm_is_adsp_ready() dereferences the freed pointer. Clear g_apm in apm_remove() before the component is unregistered so that q6apm_is_adsp_ready() returns false instead of triggering a use-after-free. Fixes: 5477518b8a0e ("ASoC: qdsp6: audioreach: add q6apm support") Signed-off-by: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com> Link: https://patch.msgid.link/20260923-vmid-v4-v6-1-3d61a0319b1c@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions