aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/super.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 867b5dcd3a40..97cfb143e09f 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -471,12 +471,14 @@ static int nfs_validate_mount_data(struct nfs_mount_data *data,
471 data->version); 471 data->version);
472 return -EINVAL; 472 return -EINVAL;
473 } 473 }
474 /* Fill in pseudoflavor for mount version < 5 */
475 data->pseudoflavor = RPC_AUTH_UNIX;
476 case 5: 474 case 5:
477 memset(data->context, 0, sizeof(data->context)); 475 memset(data->context, 0, sizeof(data->context));
478 } 476 }
479 477
478 /* Set the pseudoflavor */
479 if (!(data->flags & NFS_MOUNT_SECFLAVOUR))
480 data->pseudoflavor = RPC_AUTH_UNIX;
481
480#ifndef CONFIG_NFS_V3 482#ifndef CONFIG_NFS_V3
481 /* If NFSv3 is not compiled in, return -EPROTONOSUPPORT */ 483 /* If NFSv3 is not compiled in, return -EPROTONOSUPPORT */
482 if (data->flags & NFS_MOUNT_VER3) { 484 if (data->flags & NFS_MOUNT_VER3) {