NFS: change sign of nfs_fh length

The filehandle has a length which is defined as a 32-bit
"unsigned integer".  Change sign of the length appropriately.

Signed-off-by: Frank Sorenson <sorenson@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
Frank Sorenson 2018-10-23 10:34:57 -05:00 committed by Trond Myklebust
parent 93bdcf9fdb
commit 86bbd7422a
1 changed files with 1 additions and 1 deletions

View File

@ -3516,7 +3516,7 @@ static int decode_attr_exclcreat_supported(struct xdr_stream *xdr,
static int decode_attr_filehandle(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fh *fh) static int decode_attr_filehandle(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fh *fh)
{ {
__be32 *p; __be32 *p;
int len; u32 len;
if (fh != NULL) if (fh != NULL)
memset(fh, 0, sizeof(*fh)); memset(fh, 0, sizeof(*fh));