From: Al Viro Date: Sat, 17 Mar 2012 06:55:49 +0000 (-0400) Subject: autofs: set things up *before* registering fs type X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=54bf586e1f51018ba7624c851e7aa14cee0548d2;p=deliverable%2Flinux.git 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 --- diff --git a/fs/autofs4/init.c b/fs/autofs4/init.c index c038727b4050..cddc74b9cdb2 100644 --- a/fs/autofs4/init.c +++ b/fs/autofs4/init.c @@ -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; }