nfsd4: Use FIRST_NFS4_OP in nfsd4_decode_compound()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- fs/nfsd/nfs4xdr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/nfsd/nfs4xdr.c +1 -1
@@ -1442,7 +1442,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 ;
Signature · 1 line
1.5.4.3
Quoted 1 line · Ricardo Labiaga
Since we're checking for
LAST_NFS4_OP, useFIRST_NFS4_OPto be consistent.
Got it, thanks.--b.
Quoted 22 lines
Signed-off-by Ricardo Labiaga <[email protected]>--- fs/nfsd/nfs4xdr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)fs/nfsd/nfs4xdr.c +1
-1@@ -1442,7 +1442,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 ;Signature · 1 line
1.5.4.3