This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: dmxdev: fix error code for invalid ioctls
Author:  Mauro Carvalho Chehab <>
Date:    Sun Feb 11 05:44:21 2018 -0500

Returning -EINVAL when an ioctl is not implemented is a very
bad idea, as it is hard to distinguish from other error
contitions that an ioctl could lead. Replace it by its
right error code: -ENOTTY.

Signed-off-by: Mauro Carvalho Chehab <>

 drivers/media/dvb-core/dmxdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c
index c3054101c234..d87b69b86a59 100644
--- a/drivers/media/dvb-core/dmxdev.c
+++ b/drivers/media/dvb-core/dmxdev.c
@@ -1160,7 +1160,7 @@ static int dvb_demux_do_ioctl(struct file *file,
-               ret = -EINVAL;
+               ret = -ENOTTY;

linuxtv-commits mailing list

Reply via email to