ASoC: cs42l43: Add clear of stashed pointer on component remove
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 2 Feb 2024 14:06:17 +0000 (14:06 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 5 Feb 2024 14:32:24 +0000 (14:32 +0000)
commitcd2a2388614fcf2b9b626332c0da53a2c6cbf2ee
tree7453a155450ce3a3a15544e9645805d74ab3cf57
parentb25c4e5684cd4e5a3528485918e34f04a4bea3e5
ASoC: cs42l43: Add clear of stashed pointer on component remove

If the component is removed the stashed component pointer in the
CODECs private struct should also be cleared to prevent use of a stale
pointer.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240202140619.1068560-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l43.c