Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294482
b: refs/heads/master
c: 571b755
h: refs/heads/master
v: v3
  • Loading branch information
Weston Andros Adamson authored and Trond Myklebust committed Feb 15, 2012
1 parent 27aa35b commit 6956906
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f09c24216cd789653eb8efbf8be88409eb8d581
refs/heads/master: 571b7554016941ef0f0c3c61be72561e2bc55f5e
7 changes: 7 additions & 0 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,9 @@ static int nfs_parse_mount_options(char *raw,
if (!sloppy && invalid_option)
return 0;

if (mnt->minorversion && mnt->version != 4)
goto out_minorversion_mismatch;

/*
* verify that any proto=/mountproto= options match the address
* familiies in the addr=/mountaddr= options.
Expand Down Expand Up @@ -1564,6 +1567,10 @@ static int nfs_parse_mount_options(char *raw,
out_invalid_value:
printk(KERN_INFO "NFS: bad mount option value specified: %s\n", p);
return 0;
out_minorversion_mismatch:
printk(KERN_INFO "NFS: mount option vers=%u does not support "
"minorversion=%u\n", mnt->version, mnt->minorversion);
return 0;
out_nomem:
printk(KERN_INFO "NFS: not enough memory to parse option\n");
return 0;
Expand Down

0 comments on commit 6956906

Please sign in to comment.