diff options
Diffstat (limited to 'fs/nfs/namespace.c')
-rw-r--r-- | fs/nfs/namespace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index b9a593d056b3..78dde307317f 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c | |||
@@ -257,7 +257,6 @@ struct vfsmount *nfs_d_automount(struct path *path) | |||
257 | struct nfs_fh *fh = NULL; | 257 | struct nfs_fh *fh = NULL; |
258 | struct nfs_fattr *fattr = NULL; | 258 | struct nfs_fattr *fattr = NULL; |
259 | struct rpc_clnt *client; | 259 | struct rpc_clnt *client; |
260 | rpc_authflavor_t flavor = RPC_AUTH_UNIX; | ||
261 | 260 | ||
262 | dprintk("--> nfs_d_automount()\n"); | 261 | dprintk("--> nfs_d_automount()\n"); |
263 | 262 | ||
@@ -285,7 +284,7 @@ struct vfsmount *nfs_d_automount(struct path *path) | |||
285 | if (fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) | 284 | if (fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) |
286 | mnt = nfs_do_refmount(client, path->dentry); | 285 | mnt = nfs_do_refmount(client, path->dentry); |
287 | else | 286 | else |
288 | mnt = nfs_do_submount(path->dentry, fh, fattr, flavor); | 287 | mnt = nfs_do_submount(path->dentry, fh, fattr, client->cl_auth->au_flavor); |
289 | rpc_shutdown_client(client); | 288 | rpc_shutdown_client(client); |
290 | 289 | ||
291 | if (IS_ERR(mnt)) | 290 | if (IS_ERR(mnt)) |