summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2011-08-04 09:14:16 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-08-31 22:21:25 +0200
commit8d90e1e382688d55a75677cc4c7210a697125554 (patch)
treeaddfd940325cf9119739e987360b167fdfd24d5d
parent[media] tm6000: Do not use video buffers in radio mode (diff)
downloadlinux-8d90e1e382688d55a75677cc4c7210a697125554.tar.xz
linux-8d90e1e382688d55a75677cc4c7210a697125554.zip
[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 <thierry.reding@avionic-design.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/staging/tm6000/tm6000-alsa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/tm6000/tm6000-alsa.c b/drivers/staging/tm6000/tm6000-alsa.c
index cbe66ca0ec8a..7d675c72fd47 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;
}