diff options
-rw-r--r-- | fs/nfs/super.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 34b1ccf51adf..867f70504531 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -2321,6 +2321,12 @@ static int nfs4_validate_text_mount_data(void *options, | |||
2321 | 2321 | ||
2322 | nfs4_validate_mount_flags(args); | 2322 | nfs4_validate_mount_flags(args); |
2323 | 2323 | ||
2324 | if (args->version != 4) { | ||
2325 | dfprintk(MOUNT, | ||
2326 | "NFS4: Illegal mount version\n"); | ||
2327 | return -EINVAL; | ||
2328 | } | ||
2329 | |||
2324 | if (args->auth_flavor_len > 1) { | 2330 | if (args->auth_flavor_len > 1) { |
2325 | dfprintk(MOUNT, | 2331 | dfprintk(MOUNT, |
2326 | "NFS4: Too many RPC auth flavours specified\n"); | 2332 | "NFS4: Too many RPC auth flavours specified\n"); |