From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Keepax Subject: Re: [PATCH] ASoC: damp: Reset dapm wcache after freeing damp widgets Date: Tue, 10 Nov 2015 10:37:10 +0000 Message-ID: <20151110103710.GI2549@ck-lbox> References: <1447075826-641-1-git-send-email-jsarha@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by alsa0.perex.cz (Postfix) with ESMTP id 23ACF2606CA for ; Tue, 10 Nov 2015 11:52:48 +0100 (CET) Content-Disposition: inline In-Reply-To: <1447075826-641-1-git-send-email-jsarha@ti.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Jyri Sarha Cc: liam.r.girdwood@linux.intel.com, peter.ujfalusi@ti.com, alsa-devel@alsa-project.org, broonie@kernel.org List-Id: alsa-devel@alsa-project.org 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 > Reported-by: Felipe Balbi > --- Acked-by: Charles Keepax Thanks, Charles