]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: video_ioctl2: do not replace arg with NULL for _IO() ioctls
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 6 Apr 2010 11:12:21 +0000 (08:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:06 +0000 (12:57 -0300)
commitc49fed978432ea41c771067797ecf832ca194d01
treec5b097743f3c9292fe39a8d1d4321e8337bbc312
parent110745627ef1709adc63638701e7706e47e177be
V4L/DVB: video_ioctl2: do not replace arg with NULL for _IO() ioctls

If the ioctl was defined without direction (e.g. _IO('o', 25)), then
the arg as passed to vidioc_default was NULL instead of the original
argument.

Several ioctls in e.g. include/linux/dvb/video.h and audio.h use this type
of ioctl to pass simple numerical values to the driver.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ioctl.c