The return from an ioctl if an invalid ioctl is passed in should be EINVAL not ENOSYS.
Unified · Split
| @@ -914,7 +914,7 @@ static int autofs4_root_ioctl_unlocked(struct inode *inode, struct file *filp, · 913 unmodified lines | ||
| 914 | 914 | filp->f_path.mnt, sbi, p); |
| 915 | 915 | |
| 916 | 916 | default: |
| 917 | − return -ENOSYS; | |
| 917 | + return -EINVAL; | |
| 918 | 918 | } |
| 919 | 919 | } |
| 920 | 920 | |