diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2012-02-08 08:09:36 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-19 22:36:13 -0300 |
commit | 02bbb814d8db7b632458fcf8651267798eeef985 (patch) | |
tree | f28ca5d94ea883c4781ce48bb33d2573d7ffc401 /drivers/media | |
parent | ff38d58ec08e347f01fc380f774cedde6dec4103 (diff) | |
download | linux-02bbb814d8db7b632458fcf8651267798eeef985.tar.gz linux-02bbb814d8db7b632458fcf8651267798eeef985.tar.bz2 linux-02bbb814d8db7b632458fcf8651267798eeef985.zip |
[media] -EINVAL -> -ENOTTY
I found one more place where -EINVAL is used instead of -ENOTTY:
Note that drivers/media/dvb/dvb-core/dvbdev.c has the same code, but as far as
I can tell DVB is still using -EINVAL for unknown ioctls so I didn't change
that.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/v4l2-ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c index 74cab51a66e0..5b2ec1fd2d0a 100644 --- a/drivers/media/video/v4l2-ioctl.c +++ b/drivers/media/video/v4l2-ioctl.c @@ -2455,7 +2455,7 @@ video_usercopy(struct file *file, unsigned int cmd, unsigned long arg, /* Handles IOCTL */ err = func(file, cmd, parg); if (err == -ENOIOCTLCMD) - err = -EINVAL; + err = -ENOTTY; if (has_array_args) { *kernel_ptr = user_ptr; |