mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 15:24:02 -04:00
[media] lirc: return ENOTTY when ioctl is not supported
We shouldn't be using ENOSYS when a feature is not available. I've tested lirc; nothing is broken as far as I can make out. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
a8b875a549
commit
5c86275869
@@ -623,7 +623,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
result = put_user(ir->d.max_timeout, (__u32 __user *)arg);
|
||||
break;
|
||||
default:
|
||||
result = -EINVAL;
|
||||
result = -ENOTTY;
|
||||
}
|
||||
|
||||
mutex_unlock(&ir->irctl_lock);
|
||||
|
||||
Reference in New Issue
Block a user