autofs4: fix invalid ioctl return in autofs4_root_ioctl_unlocked()

The return from an ioctl if an invalid ioctl is passed in should be
EINVAL not ENOSYS.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Ian Kent 2016-03-15 14:58:33 -07:00 committed by Linus Torvalds
parent b3f67a988c
commit e3cd8067c1
1 changed files with 1 additions and 1 deletions

View File

@ -914,7 +914,7 @@ static int autofs4_root_ioctl_unlocked(struct inode *inode, struct file *filp,
filp->f_path.mnt, sbi, p);
default:
return -ENOSYS;
return -EINVAL;
}
}