NFS: Remove an unneeded check in decode_compound_header_arg()
Subsystems (2)
PATCH 27/27 NFS: Remove an unneeded check in decode_compound_header_arg()
Clean up: The header tag length is unsigned, so checking that it is less than zero is unnecessary.
Signed-off-by Chuck Lever <[email protected]>
---
fs/nfs/callback_xdr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/nfs/callback_xdr.c +1 -1
@@ -139,7 +139,7 @@ static __be32 decode_compound_hdr_arg(struct xdr_stream *xdr, struct cb_compoundif (unlikely (status !=0 ))return status;/* We do not like overly long tags! */ -if (hdr->taglen >CB_OP_TAGLEN_MAXSZ -12 || hdr->taglen <0 ) { +if (hdr->taglen >CB_OP_TAGLEN_MAXSZ -12 ) {printk ("NFSv4 CALLBACK %s: client sent tag of length %u\n" , __FUNCTION__, hdr->taglen);return htonl (NFS4ERR_RESOURCE );
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs