[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>
This commit is contained in:
Thierry Reding 2011-08-04 04:14:16 -03:00 коммит произвёл Mauro Carvalho Chehab
Родитель aa4a583d35
Коммит 8d90e1e382
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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;
}