aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c4
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);