From: Takashi Iwai Subject: Re: Patch to /sound/soc/pxa/pxa2xx_pcm.c, WHO IS INTERESTED? Date: Fri, 19 Dec 2008 13:03:59 +0100 Message-ID: References: <494A97CD.7070909@gmail.com> <20081219115737.GI24129@sirena.org.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id AC62C243B9 for ; Fri, 19 Dec 2008 13:04:01 +0100 (CET) In-Reply-To: <20081219115737.GI24129@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: nicolas pitre , ALSA project mailing list , sware , liam girdwood List-Id: alsa-devel@alsa-project.org At Fri, 19 Dec 2008 11:57:38 +0000, Mark Brown wrote: > > > @@ -266,6 +271,8 @@ static int pxa2xx_pcm_close(struct snd_p > > dma_free_writecombine(substream->pcm->card->dev, PAGE_SIZE, > > prtd->dma_desc_array, prtd->dma_desc_array_phys); > > kfree(prtd); > > + runtime->private_data = NULL; > > + > > return 0; > > } This looks superfluous. The runtime instance will be anyway freed soon after the close callback. Just a subtle thing, though. Takashi