nfsd41: enforce NFS4ERR_SEQUENCE_POS operation order rules for minorversion != 0...
[deliverable/linux.git] / fs / nfsd / nfs4state.c
index 24b6e05931845c6b12e7d27b793fcbc499653fb2..9243dca3576cd1a070da9c33a50468b19847b87a 100644 (file)
@@ -1047,10 +1047,14 @@ nfsd4_sequence(struct svc_rqst *rqstp,
               struct nfsd4_compound_state *cstate,
               struct nfsd4_sequence *seq)
 {
+       struct nfsd4_compoundres *resp = rqstp->rq_resp;
        struct nfsd4_session *session;
        struct nfsd4_slot *slot;
        int status;
 
+       if (resp->opcnt != 1)
+               return nfserr_sequence_pos;
+
        spin_lock(&sessionid_lock);
        status = nfserr_badsession;
        session = find_in_sessionid_hashtbl(&seq->sessionid);
This page took 0.094924 seconds and 5 git commands to generate.