Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9751fd0 authored by Wanlong Gao's avatar Wanlong Gao Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarWanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9f9831a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)