Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

autofs: set things up *before* registering fs type

it's not a serious race, but we really want misc device before anybody
gets to mount this sucker.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 54bf586e ca7068c4

+3 -3
+3 -3
fs/autofs4/init.c
··· 31 31 { 32 32 int err; 33 33 34 + autofs_dev_ioctl_init(); 35 + 34 36 err = register_filesystem(&autofs_fs_type); 35 37 if (err) 36 - return err; 37 - 38 - autofs_dev_ioctl_init(); 38 + autofs_dev_ioctl_exit(); 39 39 40 40 return err; 41 41 }