Merge tag '3.9-rc3-smp-6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/sstabe...
[firefly-linux-kernel-4.4.55.git] / fs / nfs / nfs4super.c
index 569b166cc050143c8d2cfa7ec506b479e8517240..a5e1a3026d489240cb7a44ae87eec07df019ce3a 100644 (file)
@@ -252,6 +252,8 @@ struct dentry *nfs4_try_mount(int flags, const char *dev_name,
 
        dfprintk(MOUNT, "--> nfs4_try_mount()\n");
 
+       if (data->auth_flavors[0] == RPC_AUTH_MAXFLAVOR)
+               data->auth_flavors[0] = RPC_AUTH_UNIX;
        export_path = data->nfs_server.export_path;
        data->nfs_server.export_path = "/";
        root_mnt = nfs_do_root_mount(&nfs4_remote_fs_type, flags, mount_info,