summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2026-10-14 22:06:08 +0200
committerMark Brown <broonie@kernel.org>2026-10-15 23:08:07 +0100
commit568406bc832e7e9e333e2ab05aafd0b83ffb9610 (patch)
treefcd578cec7d98c14327473905d1c978105097f71 /scripts/basic/split-include.c
parent9df30adce80dd6b0646e58c12a4cf7c6c88d0778 (diff)
downloadlinux-568406bc832e7e9e333e2ab05aafd0b83ffb9610.tar.gz
linux-568406bc832e7e9e333e2ab05aafd0b83ffb9610.zip
ASoC: soc-dapm: Remove widget from cache on removal
When a single DAPM widget is removed, it also needs to be removed from the widget cache to prevent dapm_wcache_lookup() from using a dangling pointer when checking if a widget is in cache. Since widgets may be cached across different DAPM contexts on the card (e.g. card routes), clear any matching cache entries across all DAPM contexts on the card. Since dapm_free_widgets() calls snd_soc_dapm_free_widget() anyway, it does not need to clear cache anymore. Signed-off-by: Amadeusz Sławiński <amade@asmblr.net> Link: https://patch.msgid.link/20261014200608.118770-9-amade@asmblr.net Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions