[media] tm6000: Plug memory leak on PCM free
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 4 Aug 2011 07:14:16 +0000 (04:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 31 Aug 2011 20:21:25 +0000 (17:21 -0300)
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>
drivers/staging/tm6000/tm6000-alsa.c

index cbe66ca0ec8a337f01e87f9c4367cac27da0ccd6..7d675c72fd479cffac862f00c6afb9bd85342688 100644 (file)
@@ -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;
 }