]> git.baikalelectronics.ru Git - kernel.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)
commit85cad713102659f1564f98a1d95e9ff0aa8562cc
tree4f25a8d2e134e9c22d003d8fc932228e0f07acda
parent3853ea86fa0892ece50b674ef8d54ed794679f20
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