mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
ASoC: stm32: sai: fix device leak on probe
commite26ff429eaupstream. Make sure to drop the reference taken when looking up the sync provider device and its driver data during DAI probe on probe failures and on unbind. Note that holding a reference to a device does not prevent its driver data from going away so there is no point in keeping the reference. Fixes:7dd0d83558("ASoC: stm32: sai: simplify sync modes management") Fixes:1c3816a194("ASoC: stm32: sai: add missing put_device()") Cc: stable@vger.kernel.org # 4.16:1c3816a194Cc: olivier moysan <olivier.moysan@st.com> Cc: Wen Yang <yellowriver2010@hotmail.com> Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: olivier moysan <olivier.moysan@foss.st.com> Link: https://patch.msgid.link/20251124104908.15754-2-johan@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
042169940f
commit
88baed1528
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue