OSDN Git Service

ASoC: mediatek: fix use-after-free in driver remove
authorMark Brown <broonie@kernel.org>
Thu, 1 Jun 2023 15:43:38 +0000 (16:43 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 1 Jun 2023 15:43:38 +0000 (16:43 +0100)
commitce789307107e5344546ad196e3631c007b39b243
tree0b690b753f2a1975804bc66d0e05ba1f0fad05ef
parent524306c3764276ce6cc7509908934982ce167039
parentdc93f0dcb436dfd24a06c5b3c0f4c5cd9296e8e5
ASoC: mediatek: fix use-after-free in driver remove

Merge series from Trevor Wu <trevor.wu@mediatek.com>:

These patches concern modifications made in mt8186[1]. The clock
unregistration mechanism used in mt8188 and mt8195 is similar with
mt8186, resulting in the same problem existing within the driver.
Therefore, the solution has also been applied to these two platforms.

[1] https://lore.kernel.org/all/20230511092437.1.I31cceffc8c45bb1af16eb613e197b3df92cdc19e@changeid/