[alsa-devel] [PATCH] ASoC: damp: Reset dapm wcache after freeing damp widgets

Charles Keepax ckeepax at opensource.wolfsonmicro.com
Tue Nov 10 11:37:10 CET 2015


On Mon, Nov 09, 2015 at 03:30:26PM +0200, Jyri Sarha wrote:
> 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 at ti.com>
> Reported-by: Felipe Balbi <balbi at ti.com>
> ---

Acked-by: Charles Keepax <ckeepax at opensource.wolfsonmicro.com>

Thanks,
Charles


More information about the Alsa-devel mailing list