From: Thierry Reding Date: Thu, 4 Aug 2011 07:14:16 +0000 (-0300) Subject: [media] tm6000: Plug memory leak on PCM free X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d90e1e382688d55a75677cc4c7210a697125554;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [media] tm6000: Plug memory leak on PCM free When releasing hardware resources, the DMA buffer allocated to the PCM device needs to be freed to prevent a memory leak. Signed-off-by: Thierry Reding Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/tm6000/tm6000-alsa.c b/drivers/staging/tm6000/tm6000-alsa.c index cbe66ca0ec8..7d675c72fd4 100644 --- a/drivers/staging/tm6000/tm6000-alsa.c +++ b/drivers/staging/tm6000/tm6000-alsa.c @@ -304,6 +304,7 @@ static int snd_tm6000_hw_free(struct snd_pcm_substream *substream) schedule_work(&core->wq_trigger); } + dsp_buffer_free(substream); return 0; }