]> git.baikalelectronics.ru Git - kernel.git/commit
v4l2-ioctl: properly return -EINVAL when parameters are wrong
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 31 Jul 2011 12:37:56 +0000 (09:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 31 Jul 2011 12:37:56 +0000 (09:37 -0300)
commit7cc343be25e2be51365f80f032feeed3b0c4e4ec
treefaa650c008e8193612a610b4a78c641506da3f97
parentae2611e5733abc0ae7e11f2608d1634bfead854e
v4l2-ioctl: properly return -EINVAL when parameters are wrong

Whan an ioctl is implemented, but the parameters are invalid,
the error code should be -EINVAL. However, if the ioctl is
not defined, it should return -ENOTTY instead.

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