linux-stable/sound/soc/mediatek
Ricardo Ribalda Delgado a94147563e ASoC: mediatek: mt8173: Fix snd_soc_component_initialize error path
commit a46d37012a upstream.

If the second component fails to initialize, cleanup the first on.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: stable@kernel.org
Fixes: f1b5bf0736 ("ASoC: mt2701/mt8173: replace platform to component")
Signed-off-by: Ricardo Ribalda Delgado <ribalda@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230612-mt8173-fixup-v2-1-432aa99ce24d@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-19 16:36:58 +02:00
..
common ASoC: mediatek: common: Fix refcount leak in parse_dai_link_info 2023-04-11 12:40:07 +01:00
mt2701 ASoC: mediatek: mt2701-afe-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:36 +00:00
mt6797 ASoC: mediatek: mt6797-afe-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:37 +00:00
mt8173 ASoC: mediatek: mt8173: Fix snd_soc_component_initialize error path 2023-07-19 16:36:58 +02:00
mt8183 ASoC: mediatek: mt8183-afe-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:39 +00:00
mt8186 ASoC: mediatek: mt8186: Fix use-after-free in driver remove path 2023-05-15 10:21:13 +09:00
mt8188 ASoC: mediatek: mt8188: fix use-after-free in driver remove path 2023-06-01 12:30:35 +01:00
mt8192 ASoC: mediatek: mt8192-afe-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:41 +00:00
mt8195 ASoC: mediatek: mt8195: fix use-after-free in driver remove path 2023-06-01 12:30:36 +01:00
Kconfig ASoC: mediatek: Add support for MT8188 SoC 2023-01-19 15:31:47 +00:00
Makefile ASoC: mediatek: mt8188: add platform driver 2023-01-16 11:16:26 +00:00