nfsd4: fix crash on unknown operation number
[pandora-kernel.git] / fs / nfsd / nfs4proc.c
index eebccfe..9a959de 100644 (file)
@@ -1111,7 +1111,8 @@ static bool need_wrongsec_check(struct svc_rqst *rqstp)
         */
        if (argp->opcnt == resp->opcnt)
                return false;
-
+       if (next->opnum == OP_ILLEGAL)
+               return false;
        nextd = OPDESC(next);
        /*
         * Rest of 2.6.3.1.1: certain operations will return WRONGSEC