From e5bb09c8bb59a304215d5770f9b8a8546e6acb59 Mon Sep 17 00:00:00 2001 From: Frank Sorenson Date: Tue, 23 Oct 2018 10:34:57 -0500 Subject: [PATCH] NFS: change sign of nfs_fh length commit 86bbd7422ae6a33735df6846fd685e46686da714 upstream. 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 Signed-off-by: Trond Myklebust Signed-off-by: Joseph Qi Reviewed-by: Xiaoguang Wang --- fs/nfs/nfs4xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 1c0227c78a7b..e66891ed38e5 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c @@ -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)); -- GitLab