]> git.karo-electronics.de Git - linux-beck.git/commit
[media] v4l2: put VIDIOC_DBG_G_CHIP_NAME under ADV_DEBUG
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 27 Mar 2013 11:04:23 +0000 (08:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 14 Apr 2013 22:45:23 +0000 (19:45 -0300)
commitcd634f1bfc182e564f33809fdca33027bb99fceb
treee81c3b626866a64b8152576cb500ee2fc2fe40a0
parentdfc2e12df02d49a1567bc90989ceef870cf5b147
[media] v4l2: put VIDIOC_DBG_G_CHIP_NAME under ADV_DEBUG

Only enable this ioctl if the VIDEO_ADV_DEBUG config option is set. This
prevents abuse from both userspace and kernelspace (some bridge drivers
abuse DBG_G_CHIP_IDENT, lets prevent that from happening again with this
ioctl).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/DocBook/media/v4l/vidioc-dbg-g-chip-name.xml
drivers/media/usb/em28xx/em28xx-video.c
drivers/media/v4l2-core/v4l2-dev.c
drivers/media/v4l2-core/v4l2-ioctl.c
include/media/v4l2-ioctl.h