diff options
author | Andy Adamson <andros@netapp.com> | 2009-04-03 01:28:12 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-04-03 20:41:16 -0400 |
commit | f9bb94c4c60f6e1d1717077bfddb614f03a607d1 (patch) | |
tree | 7f194a6ceca40f3b66e1e0a40b5f39af426269e1 /fs/nfsd/nfs4state.c | |
parent | b85d4c01b76f6969a085d07a767fa45225cb14be (diff) |
nfsd41: enforce NFS4ERR_SEQUENCE_POS operation order rules for minorversion != 0 only.
Signed-off-by: Andy Adamson<andros@netapp.com>
[nfsd41: do not verify nfserr_sequence_pos for minorversion 0]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 24b6e0593184..9243dca3576c 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -1047,10 +1047,14 @@ nfsd4_sequence(struct svc_rqst *rqstp, | |||
1047 | struct nfsd4_compound_state *cstate, | 1047 | struct nfsd4_compound_state *cstate, |
1048 | struct nfsd4_sequence *seq) | 1048 | struct nfsd4_sequence *seq) |
1049 | { | 1049 | { |
1050 | struct nfsd4_compoundres *resp = rqstp->rq_resp; | ||
1050 | struct nfsd4_session *session; | 1051 | struct nfsd4_session *session; |
1051 | struct nfsd4_slot *slot; | 1052 | struct nfsd4_slot *slot; |
1052 | int status; | 1053 | int status; |
1053 | 1054 | ||
1055 | if (resp->opcnt != 1) | ||
1056 | return nfserr_sequence_pos; | ||
1057 | |||
1054 | spin_lock(&sessionid_lock); | 1058 | spin_lock(&sessionid_lock); |
1055 | status = nfserr_badsession; | 1059 | status = nfserr_badsession; |
1056 | session = find_in_sessionid_hashtbl(&seq->sessionid); | 1060 | session = find_in_sessionid_hashtbl(&seq->sessionid); |