Skip to content

Commit e3cd806

Browse files
raven-autorvalds
authored andcommitted
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>
1 parent b3f67a9 commit e3cd806

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/autofs4/root.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ static int autofs4_root_ioctl_unlocked(struct inode *inode, struct file *filp,
914914
filp->f_path.mnt, sbi, p);
915915

916916
default:
917-
return -ENOSYS;
917+
return -EINVAL;
918918
}
919919
}
920920

0 commit comments

Comments
 (0)