Skip to content

Commit

Permalink
[media] media:dvb:fix up ENOIOCTLCMD error handling
Browse files Browse the repository at this point in the history
At commit 07d106d, 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>
  • Loading branch information
Wanlong Gao authored and Mauro Carvalho Chehab committed Sep 15, 2012
1 parent 9f9831a commit d9751fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb-core/dvbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d9751fd

Please sign in to comment.