Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
02bbb814 ff38d58e

+1 -1
+1 -1
drivers/media/video/v4l2-ioctl.c
··· 2455 2455 /* Handles IOCTL */ 2456 2456 err = func(file, cmd, parg); 2457 2457 if (err == -ENOIOCTLCMD) 2458 - err = -EINVAL; 2458 + err = -ENOTTY; 2459 2459 2460 2460 if (has_array_args) { 2461 2461 *kernel_ptr = user_ptr;