aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-06-08 12:01:14 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-06-28 17:20:50 -0400
commit98d9452448122486f81030c6c70f29471f65e1ce (patch)
tree5e90a522eff05cc8ab5a01f3b14b08fd585be88b
parent140150dbb1f9cf3ef963fb55505f994d74ff3276 (diff)
NFSv4: Decode getdevicelist should use nfs4_verifier
The verifier returned by the GETDEVICELIST operation is not a write verifier, but a nfs4_verifier. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--fs/nfs/nfs4xdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 93f8bec9f4f3..1e2c47b3889d 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -5579,7 +5579,7 @@ static int decode_getdevicelist(struct xdr_stream *xdr,
5579{ 5579{
5580 __be32 *p; 5580 __be32 *p;
5581 int status, i; 5581 int status, i;
5582 struct nfs_writeverf verftemp; 5582 nfs4_verifier verftemp;
5583 5583
5584 status = decode_op_hdr(xdr, OP_GETDEVICELIST); 5584 status = decode_op_hdr(xdr, OP_GETDEVICELIST);
5585 if (status) 5585 if (status)
@@ -5593,7 +5593,7 @@ static int decode_getdevicelist(struct xdr_stream *xdr,
5593 p += 2; 5593 p += 2;
5594 5594
5595 /* Read verifier */ 5595 /* Read verifier */
5596 p = xdr_decode_opaque_fixed(p, verftemp.verifier, NFS4_VERIFIER_SIZE); 5596 p = xdr_decode_opaque_fixed(p, verftemp.data, NFS4_VERIFIER_SIZE);
5597 5597
5598 res->num_devs = be32_to_cpup(p); 5598 res->num_devs = be32_to_cpup(p);
5599 5599