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 /Documentation/DocBook/lsm.tmpl | |
parent | 4c775902252b06673cf26a33834842f1fec3fe3e (diff) |
[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 'Documentation/DocBook/lsm.tmpl')
0 files changed, 0 insertions, 0 deletions