History

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.

Ian Kent committed 10 years ago

Commit e3cd8061 parent b3f67a91 file · +1 −1Browse files

Unified · Split

fs/autofs4/root.c+1−1
@@ -914,7 +914,7 @@ static int autofs4_root_ioctl_unlocked(struct inode *inode, struct file *filp, · 913 unmodified lines
914914 filp->f_path.mnt, sbi, p);
915915
916916 default:
917− return -ENOSYS;
917+ return -EINVAL;
918918 }
919919 }
920920

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t