diff options
| author | Chancel Liu <chancel.liu@nxp.com> | 2026-09-23 15:13:04 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-23 14:23:03 +0200 |
| commit | 6e7f4c5b30a3b0d47c44be2303d8370e0adfa361 (patch) | |
| tree | 0643eef329008e5953fd5970759eb11fc12d80d8 /tools/perf/scripts/python | |
| parent | 48f1dfbfe4e5f314ddc3e7cbe13f0bb60a1b4f7f (diff) | |
ASoC: codecs: rt5645: Free the hardware EQ parameters on component remove
component->dev is the underlying I2C bus device, whose devres lifetime
follows the physical device's probe/remove rather than the ASoC card's
bind/unbind. The eq_param array was allocated in rt5645_probe() via
devm_kcalloc(component->dev, ...) but never released on component remove,
so it leaked one allocation on every card bind/unbind cycle.
Allocate eq_param with plain kcalloc() in rt5645_probe() and free it
explicitly in rt5645_remove() to keep its lifetime tied to the component.
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20260923061305.4041197-21-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
