]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (7553): videobuf-vmalloc: fix STREAMOFF/STREAMON
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 13 Apr 2008 17:58:43 +0000 (14:58 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:08:48 +0000 (14:08 -0300)
commitaaea56afc31345e7b0456ebb01586ba627ecd0f8
tree4f25a8d2e134e9c22d003d8fc932228e0f07acda
parent968ced78a53509a996708a14e8b9269d1dc6a61c
V4L/DVB (7553): videobuf-vmalloc: fix STREAMOFF/STREAMON

There were a small bug on videobuf-vmalloc that were preventing STREAMOFF to
work. The issue is that vmalloc'ed mmaped memory should only be freed after
being sure that there aren't any mmap usage. Otherwise, the memory remap will
stop working, and the userspace won't receive any frames.

This bug were affecting some userspace applications, like tvtime.

After this patch, tvtime started to work again with the drivers that use
videobuf-vmalloc.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/videobuf-vmalloc.c