Skip to content

Commit

Permalink
autofs: set things up *before* registering fs type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent ca7068c commit 54bf586
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/autofs4/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 54bf586

Please sign in to comment.