V4L/DVB (13239): saa7146: fix memory leakage in pagetable-handling
authorJohann Friedrichs <johann.friedrichs@web.de>
Wed, 7 Oct 2009 07:41:37 +0000 (04:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:41:04 +0000 (18:41 -0200)
commit311c70e1f906b7411b30f526ef15deb62cb37e7a
tree8e73c017a4dccc69fbe229cfc9f5980b4867bc06
parent622b828ab795580903e79acb33fb44f5c9ce7b0f
V4L/DVB (13239): saa7146: fix memory leakage in pagetable-handling

In buffer_release() the previously allocated pagetables are not
freed,  which might result in a memory leak in certain application
use-cases, where the frame format is changed from planar format to
non-planar format. The fix explicitely frees the page tables when a
format change is done and when buffer_release() is called.

Signed-off-by: Johann Friedrichs <johann.friedrichs@web.de>
Signed-off-by: Michael Hunold <hunold@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/saa7146_video.c