[PATCH 4/6] nfs41: fix Xcode_create_session's xdr Xcoding pointer type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



should point to __be32, not uint32_t.

Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx>
---
 fs/nfs/nfs4xdr.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index d0fa05b..ea16df2 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -1566,7 +1566,7 @@ static void encode_create_session(struct xdr_stream *xdr,
 				  struct nfs41_create_session_args *args,
 				  struct compound_hdr *hdr)
 {
-	uint32_t *p;
+	__be32 *p;
 	char machine_name[NFS4_MAX_MACHINE_NAME_LEN];
 	uint32_t len;
 	struct nfs_client *clp = args->client;
@@ -4229,7 +4229,7 @@ static int decode_exchange_id(struct xdr_stream *xdr,
 static int decode_create_session(struct xdr_stream *xdr,
 				 struct nfs41_create_session_res *res)
 {
-	uint32_t *p;
+	__be32 *p;
 	int status;
 	u32 nr_attrs;
 	struct nfs_client *clp = res->client;
-- 
1.6.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-next" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux