NFS: change sign of nfs_fh length
authorFrank Sorenson <sorenson@redhat.com>
Tue, 23 Oct 2018 15:34:57 +0000 (10:34 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 23 Oct 2018 16:22:21 +0000 (12:22 -0400)
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>
fs/nfs/nfs4xdr.c

index b7bde12d8cd518ce7b8da11d7ae3b6239ca3292f..2fc8f6fa25e4b400553af4506f243ae1ada058e2 100644 (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)
 {
        __be32 *p;
-       int len;
+       u32 len;
 
        if (fh != NULL)
                memset(fh, 0, sizeof(*fh));