V4L/DVB (10625): ivtv: fix decoder crash regression
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 14 Feb 2009 22:58:33 +0000 (19:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 17 Feb 2009 12:43:09 +0000 (09:43 -0300)
commitac9575f75c52bcb455120f8c43376b556acba048
treed7c4699dfa9b97b2a189643043886fe0fe180212
parentad28127d7c7c617bca1d426f95b6ffa1fb8f700f
V4L/DVB (10625): ivtv: fix decoder crash regression

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>
drivers/media/video/ivtv/ivtv-ioctl.c