diff options
| author | Chancel Liu <chancel.liu@nxp.com> | 2026-09-23 15:13:05 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-23 14:23:04 +0200 |
| commit | 3943b84e063f036ce919effa834a51d582812b9f (patch) | |
| tree | b71e3106ba2cfb0c25e402a392429510763708b2 /tools/perf/scripts/python | |
| parent | 6e7f4c5b30a3b0d47c44be2303d8370e0adfa361 (diff) | |
ASoC: codecs: rt5514-spi: Free the DSP context on component remove
component->dev is the underlying SPI bus device, whose devres lifetime
follows the physical device's probe/remove rather than the ASoC card's
bind/unbind. The rt5514_dsp context was allocated in
rt5514_spi_pcm_probe() via devm_kzalloc(component->dev, ...) and its
delayed work and wakeup source were never torn down on component remove,
so the context leaked and the pending copy work / wakeup source were
left dangling on every card bind/unbind cycle.
Allocate the context with plain kzalloc() and add a component .remove
callback that cancels the copy work, undoes device_init_wakeup(),
destroys the mutex and frees the context.
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20260923061305.4041197-22-chancel.liu@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
