diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2011-01-08 09:53:32 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-19 11:45:13 -0200 |
commit | a1198ccf9c52922e66a3372b0045ebe335a127dd (patch) | |
tree | 246bd2f8cbba0b71bf63cc2c07495e7172685dda /drivers/media/radio/si470x/radio-si470x-common.c | |
parent | [media] gspca_sonixb: Fix mirrored image with ov7630 (diff) | |
download | linux-dev-a1198ccf9c52922e66a3372b0045ebe335a127dd.tar.xz linux-dev-a1198ccf9c52922e66a3372b0045ebe335a127dd.zip |
[media] v4l2-ioctl: fix incorrect error code if VIDIOC_DBG_G/S_REGISTER are unsupported
The ioctls VIDIOC_DBG_S_REGISTER and VIDIOC_DBG_G_REGISTER should return -EINVAL
if the driver didn't implement them. Currently they return -EPERM if called as
non-root user. However, this check should only be done if the driver actually
implemented these ioctls. Otherwise, just return -EINVAL as we do with all
unimplemented ioctls.
This bug make the v4l2-compliance test suite fail.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/si470x/radio-si470x-common.c')
0 files changed, 0 insertions, 0 deletions