projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3f67a9
)
autofs4: fix invalid ioctl return in autofs4_root_ioctl_unlocked()
author
Ian Kent
<raven@themaw.net>
Tue, 15 Mar 2016 21:58:33 +0000
(14:58 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000
(16:55 -0700)
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>
fs/autofs4/root.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/autofs4/root.c
b/fs/autofs4/root.c
index 101879ed764ca0f3cb073f71c33396fb277db9e9..aa8228eb104b8fe7f47eea1f36de730daa003d5c 100644
(file)
--- 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 -E
NOSYS
;
+ return -E
INVAL
;
}
}