Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294483
b: refs/heads/master
c: b4b9a0c
h: refs/heads/master
i:
  294481: 27aa35b
  294479: e706c09
v: v3
  • Loading branch information
Vitaliy Gusev authored and Trond Myklebust committed Feb 15, 2012
1 parent 6956906 commit b47fed1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 571b7554016941ef0f0c3c61be72561e2bc55f5e
refs/heads/master: b4b9a0c1c89464dabafef974960f509ce33ae1c0
6 changes: 4 additions & 2 deletions trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5287,6 +5287,8 @@ static int nfs4_verify_fore_channel_attrs(struct nfs41_create_session_args *args
return -EINVAL;
if (rcvd->max_reqs == 0)
return -EINVAL;
if (rcvd->max_reqs > NFS4_MAX_SLOT_TABLE)
rcvd->max_reqs = NFS4_MAX_SLOT_TABLE;
return 0;
}

Expand All @@ -5302,9 +5304,9 @@ static int nfs4_verify_back_channel_attrs(struct nfs41_create_session_args *args
if (rcvd->max_resp_sz_cached > sent->max_resp_sz_cached)
return -EINVAL;
/* These would render the backchannel useless: */
if (rcvd->max_ops == 0)
if (rcvd->max_ops != sent->max_ops)
return -EINVAL;
if (rcvd->max_reqs == 0)
if (rcvd->max_reqs != sent->max_reqs)
return -EINVAL;
return 0;
}
Expand Down

0 comments on commit b47fed1

Please sign in to comment.