Skip to content

Commit

Permalink
NFS: change sign of nfs_fh length
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frank Sorenson authored and Trond Myklebust committed Oct 23, 2018
1 parent 93bdcf9 commit 86bbd74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 86bbd74

Please sign in to comment.