summaryrefslogtreecommitdiffstats
path: root/fs/autofs4/root.c
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2016-03-15 22:58:33 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-16 00:55:16 +0100
commite3cd8067c1cd686fed2fe75f6cf98c62fc6ff57e (patch)
treecabbabd1099b18f1970b69acc45610eedf099bbe /fs/autofs4/root.c
parentautofs4: fix coding style line length in autofs4_wait() (diff)
downloadlinux-e3cd8067c1cd686fed2fe75f6cf98c62fc6ff57e.tar.xz
linux-e3cd8067c1cd686fed2fe75f6cf98c62fc6ff57e.zip
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>
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r--fs/autofs4/root.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}