Skip to content

Commit 45eaa1c

Browse files
author
J. Bruce Fields
committed
nfsd4: fix change attribute endianness
Though actually this doesn't matter much, as NFSv4.0 clients are required to treat the change attribute as opaque. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent d1829b3 commit 45eaa1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfsd/nfs4xdr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,12 +1674,12 @@ nfsd4_decode_compound(struct nfsd4_compoundargs *argp)
16741674

16751675
static void write32(__be32 **p, u32 n)
16761676
{
1677-
*(*p)++ = n;
1677+
*(*p)++ = htonl(n);
16781678
}
16791679

16801680
static void write64(__be32 **p, u64 n)
16811681
{
1682-
write32(p, (u32)(n >> 32));
1682+
write32(p, (n >> 32));
16831683
write32(p, (u32)n);
16841684
}
16851685

0 commit comments

Comments
 (0)