projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f9831a
)
[media] media:dvb:fix up ENOIOCTLCMD error handling
author
Wanlong Gao
<gaowanlong@cn.fujitsu.com>
Mon, 27 Aug 2012 06:23:14 +0000
(
03:23
-0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sat, 15 Sep 2012 16:19:54 +0000
(13:19 -0300)
At commit
07d106d0
, Linus pointed out that ENOIOCTLCMD should be
translated as ENOTTY to user mode.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-core/dvbdev.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb-core/dvbdev.c
b/drivers/media/dvb-core/dvbdev.c
index 39eab73b01ae9bb5e0a9c4d9667e3c99b4b51415..d33101aaf0b5e6bb51e55baef9b21ba0d53c4e9a 100644
(file)
--- 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 = -E
INVAL
;
+ err = -E
NOTTY
;
mutex_unlock(&dvbdev_mutex);
if (err < 0)