Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21086
b: refs/heads/master
c: 85c6932
h: refs/heads/master
v: v3
  • Loading branch information
Peter Staubach authored and Linus Torvalds committed Mar 17, 2006
1 parent 3b2dd95 commit b7ce09c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b40dc780ed996162f3af8712eb03beb24dcdbef
refs/heads/master: 85c6932ef0c7a82c309f8728ddf29768001d794e
4 changes: 1 addition & 3 deletions trunk/fs/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ asmlinkage sys_nfsservctl(int cmd, struct nfsctl_arg __user *arg, void __user *r
if (copy_from_user(&version, &arg->ca_version, sizeof(int)))
return -EFAULT;

if (version != NFSCTL_VERSION) {
printk(KERN_WARNING "nfsd: incompatible version in syscall.\n");
if (version != NFSCTL_VERSION)
return -EINVAL;
}

if (cmd < 0 || cmd >= sizeof(map)/sizeof(map[0]) || !map[cmd].name)
return -EINVAL;
Expand Down

0 comments on commit b7ce09c

Please sign in to comment.