V4L/DVB (7023): Fix a regresion left by changeset 7e65d6e8f6df
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 13 Jan 2008 22:40:30 +0000 (19:40 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:57 +0000 (19:04 -0200)
commit1f8d30083abc17897b897787c39d446eb9d99fe0
tree5f286b1c8b2d95446cba0b8f9e3834fc27528d25
parentdfd8c04ec14b88bc2849e62d6ff9e36f31352b60
V4L/DVB (7023): Fix a regresion left by changeset 7e65d6e8f6df

Changeset 7e65d6e8f6df removed a very bad hack on mmap(). However, the fixes
weren't considering usermap and overlay memory models. This were breaking
direct reading from /dev/video?, used mostly by mpeg aware drivers.

Thanks to Steven Toth <stoth@linuxtv.org> for reporting the issue and
bissecting it.

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