From: Wanlong Gao Date: Mon, 27 Aug 2012 06:23:14 +0000 (-0300) Subject: [media] media:dvb:fix up ENOIOCTLCMD error handling X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d9751fd02a70bbfd9868f8584c6e9fd10a713d65;p=openwrt%2Fstaging%2Fblogic.git [media] media:dvb:fix up ENOIOCTLCMD error handling At commit 07d106d0, Linus pointed out that ENOIOCTLCMD should be translated as ENOTTY to user mode. Signed-off-by: Wanlong Gao Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index 39eab73b01ae..d33101aaf0b5 100644 --- a/drivers/media/dvb-core/dvbdev.c +++ b/drivers/media/dvb-core/dvbdev.c @@ -420,7 +420,7 @@ int dvb_usercopy(struct file *file, /* call driver */ mutex_lock(&dvbdev_mutex); if ((err = func(file, cmd, parg)) == -ENOIOCTLCMD) - err = -EINVAL; + err = -ENOTTY; mutex_unlock(&dvbdev_mutex); if (err < 0)