diff options
author | Frank Sorenson <sorenson@redhat.com> | 2018-10-23 11:34:57 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-10-23 12:22:21 -0400 |
commit | 86bbd7422ae6a33735df6846fd685e46686da714 (patch) | |
tree | 28a94b41c90672690ae8b3eaa7a937a21ee6c2d2 | |
parent | 93bdcf9fdb89646e9446fab25aec76a754969619 (diff) |
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>
-rw-r--r-- | fs/nfs/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index b7bde12d8cd5..2fc8f6fa25e4 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, | |||
3516 | static int decode_attr_filehandle(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fh *fh) | 3516 | static int decode_attr_filehandle(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fh *fh) |
3517 | { | 3517 | { |
3518 | __be32 *p; | 3518 | __be32 *p; |
3519 | int len; | 3519 | u32 len; |
3520 | 3520 | ||
3521 | if (fh != NULL) | 3521 | if (fh != NULL) |
3522 | memset(fh, 0, sizeof(*fh)); | 3522 | memset(fh, 0, sizeof(*fh)); |