Skip to content

Commit

Permalink
autofs4: fix invalid ioctl return in autofs4_root_ioctl_unlocked()
Browse files Browse the repository at this point in the history
The return from an ioctl if an invalid ioctl is passed in should be
EINVAL not ENOSYS.

Signed-off-by: Ian Kent <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
raven-au authored and torvalds committed Mar 15, 2016
1 parent b3f67a9 commit e3cd806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/autofs4/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit e3cd806

Please sign in to comment.