ASoC: sh: rz-ssi: Release the DMA channels in rz_ssi_probe() error path
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tue, 26 Apr 2022 07:49:22 +0000 (08:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:04 +0000 (10:26 +0200)
commit8a91e32cbb9fb8c34e518a6e5875c5ca344c6e66
tree9d5ffe81f7a9d226a19a966248bdfb88d47cf9c4
parent13142b1726527ace01f7e88dc1aa5423203d0291
ASoC: sh: rz-ssi: Release the DMA channels in rz_ssi_probe() error path

[ Upstream commit 767e6f26204d3f5406630e86b720d01818b8616d ]

DMA channels requested by rz_ssi_dma_request() in rz_ssi_probe() were
never released in the error path apart from one place. This patch fixes
this issue by calling rz_ssi_release_dma_channels() in the error path.

Fixes: 26ac471c5354 ("ASoC: sh: rz-ssi: Add SSI DMAC support")
Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20220426074922.13319-4-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/sh/rz-ssi.c