V4L: ivtv: fix decoder crash regression
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 14 Feb 2009 22:58:33 +0000 (19:58 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:53:02 +0000 (17:53 -0700)
commit1252e72a3fc324dc381956a4231ceb91425329b3
tree92b1444971def09baab46c4bdf6210c1a8d88641
parentd9af68ea2c7935860e8922dd1a3389489a14b03f
V4L: ivtv: fix decoder crash regression

(cherry picked from commit ac9575f75c52bcb455120f8c43376b556acba048)

The video_ioctl2 conversion of ivtv in kernel 2.6.27 introduced a bug
causing decoder commands to crash. The decoder commands should have been
handled from the video_ioctl2 default handler, ensuring correct mapping
of the argument between user and kernel space. Unfortunately they ended
up before the video_ioctl2 call, causing random crashes.

Thanks to hannes@linus.priv.at for testing and helping me track down the
cause!

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/ivtv/ivtv-ioctl.c