ASoC: dapm: Reset dapm wcache after freeing damp widgets
authorJyri Sarha <jsarha@ti.com>
Tue, 10 Nov 2015 16:12:42 +0000 (18:12 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 10 Nov 2015 18:52:06 +0000 (18:52 +0000)
commitfd589a1be20fdd76ef97700dd0185e7a060546dc
tree93a642eaf9fd2868431a06da7556d2e87b831762
parentbb9a13a0209c56cdf27d125a1f2f6f34378c64f4
ASoC: dapm: Reset dapm wcache after freeing damp widgets

If there is anything in damp->path_source_cache or
damp->path_sink_cache, it can not be valid after the widgets have been
freed. Without this patch a repeated remove and load of a machine
driver may cause NULL pointer reference in dapm_wcache_lookup() when a
freed widget, not belonging to any list, is haunting in the wcache.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reported-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dapm.h
sound/soc/soc-dapm.c
sound/soc/soc-topology.c
This page took 0.025674 seconds and 5 git commands to generate.