Skip to content

Commit 86bbd74

Browse files
fsorensonTrond Myklebust
authored andcommitted
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>
1 parent 93bdcf9 commit 86bbd74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/nfs4xdr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3516,7 +3516,7 @@ static int decode_attr_exclcreat_supported(struct xdr_stream *xdr,
35163516
static int decode_attr_filehandle(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fh *fh)
35173517
{
35183518
__be32 *p;
3519-
int len;
3519+
u32 len;
35203520

35213521
if (fh != NULL)
35223522
memset(fh, 0, sizeof(*fh));

0 commit comments

Comments
 (0)