From: Ian Kent Date: Tue, 15 Mar 2016 21:58:33 +0000 (-0700) Subject: autofs4: fix invalid ioctl return in autofs4_root_ioctl_unlocked() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3cd8067c1cd686fed2fe75f6cf98c62fc6ff57e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 101879ed764c..aa8228eb104b 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c @@ -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; } }