dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Al Viro 2012-03-17 02:55:49 -04:00
parent ca7068c41a
commit 54bf586e1f
1 changed files with 3 additions and 3 deletions

View File

@ -31,11 +31,11 @@ static int __init init_autofs4_fs(void)
{
int err;
autofs_dev_ioctl_init();
err = register_filesystem(&autofs_fs_type);
if (err)
return err;
autofs_dev_ioctl_init();
autofs_dev_ioctl_exit();
return err;
}