diff options
| author | Ma Ke <make_ruc2021@163.com> | 2026-09-14 17:50:09 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-25 18:36:30 +0100 |
| commit | f0cc352be29ba616e0682f66f551d3f3029886fd (patch) | |
| tree | f667989ca61ba5ec4b78ddf928aa4c5d2186770f /scripts/Makefile.thinlto | |
| parent | cc466c77059ea6ce734f909ff4b156b036334cc3 (diff) | |
| download | linux-f0cc352be29ba616e0682f66f551d3f3029886fd.tar.gz linux-f0cc352be29ba616e0682f66f551d3f3029886fd.zip | |
ASoC: wcd9335: Fix device reference leak in wcd9335_slim_status()
wcd9335_slim_status() obtains the SLIM interface device with
of_slim_get_device(), which uses device_find_child() internally and
returns the device with a reference held. As the device_find_child()
documentation says: you will need to drop the reference with
put_device() after use. The reference is stored in wcd->slim_ifc_dev
and never dropped, so the SLIM interface device cannot be released.
Fix it by using devm_add_action_or_reset() or put_device() respectively.
Found by code review.
Fixes: 20aedafdf492 ("ASoC: wcd9335: add support to wcd9335 codec")
Cc: stable@vger.kernel.org
Signed-off-by: Ma Ke <make_ruc2021@163.com>
Link: https://patch.msgid.link/20260914095009.12049-1-make_ruc2021@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
