]> git.baikalelectronics.ru Git - kernel.git/commit
media: dmxdev: fix error code for invalid ioctls
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 11 Feb 2018 10:44:21 +0000 (05:44 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 10:23:04 +0000 (05:23 -0500)
commit240445846e509dcfba1f17cb7242630738fb4f4d
tree412dfda12a52778eab16abdb38175fd1feb6aacd
parenta8ce0d7023533f83c5269eeb083b06a5398ef552
media: dmxdev: fix error code for invalid ioctls

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 <mchehab@s-opensource.com>
drivers/media/dvb-core/dmxdev.c