]> err.no Git - linux-2.6/commit
V4L/DVB (6997): Replace a very dirty hack on videobuf for a clean wait_event
authorMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 10 Jan 2008 10:33:03 +0000 (07:33 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:46 +0000 (19:04 -0200)
commitd05051c82e0e8ff748e9c9a06a061bda3ad656e5
tree8c16254c217b301b60519136bc12618de3894a2e
parentc6243d9c3de82e46467c88898db45ca14b6843a0
V4L/DVB (6997): Replace a very dirty hack on videobuf for a clean wait_event

In order to videobuf_iolock to work, mmap_mapper should be called first.
Otherwise, an OOPS is generated.

On some cases, .mmap file handler used to took some time to be called. On those
situations, mmap_mmapper() were called after iolock.

This patch properly waits for mmap_mapper to be called, otherwise generating an
error.

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