From: Ricardo Labiaga <Ricardo.Labiaga@netapp.com>
Date: Sat, 12 Dec 2009 04:03:27 +0000 (-0800)
Subject: nfsd4: Use FIRST_NFS4_OP in nfsd4_decode_compound()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de3cab793c6a5c8505d66bee111edcc7098380ba;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

nfsd4: Use FIRST_NFS4_OP in nfsd4_decode_compound()

Since we're checking for LAST_NFS4_OP, use FIRST_NFS4_OP to be consistent.

Signed-off-by: Ricardo Labiaga <Ricardo.Labiaga@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
---

diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 4f14f0c0616f..c458fb11c957 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -1434,7 +1434,7 @@ nfsd4_decode_compound(struct nfsd4_compoundargs *argp)
 		}
 		op->opnum = ntohl(*argp->p++);
 
-		if (op->opnum >= OP_ACCESS && op->opnum <= LAST_NFS4_OP)
+		if (op->opnum >= FIRST_NFS4_OP && op->opnum <= LAST_NFS4_OP)
 			op->status = ops->decoders[op->opnum](argp, &op->u);
 		else {
 			op->opnum = OP_ILLEGAL;