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:32:32 +0000 (17:32 -0700)
commitbbbfbf6d74e6054c4f6af2dd7fe95c5551b6413a
tree2cc7d8f243d9b3fc7e921d0f44cd8664e04f9a79
parentef956570e79d30cf9a25e5a1a5464f75a8989181
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