Skip to content

Commit

Permalink
nfsd4: Use FIRST_NFS4_OP in nfsd4_decode_compound()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ricardo Labiaga authored and J. Bruce Fields committed Jan 13, 2010
1 parent c551866 commit de3cab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de3cab7

Please sign in to comment.