Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158595
b: refs/heads/master
c: db942bb
h: refs/heads/master
i:
  158593: f408b73
  158591: ce1dbcb
v: v3
  • Loading branch information
Benny Halevy authored and Trond Myklebust committed Aug 14, 2009
1 parent c01e0e5 commit 3b17124
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07d30434cfe2f1a1553143c6b20f1fe68d2ef80a
refs/heads/master: db942bbd09563e169cc5d9004c32c1de33220fd1
22 changes: 12 additions & 10 deletions trunk/fs/nfs/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -3320,17 +3320,19 @@ static int decode_close(struct xdr_stream *xdr, struct nfs_closeres *res)
return status;
}

static int decode_verifier(struct xdr_stream *xdr, void *verifier)
{
return decode_opaque_fixed(xdr, verifier, 8);
}

static int decode_commit(struct xdr_stream *xdr, struct nfs_writeres *res)
{
__be32 *p;
int status;

status = decode_op_hdr(xdr, OP_COMMIT);
if (status)
return status;
READ_BUF(8);
COPYMEM(res->verf->verifier, 8);
return 0;
if (!status)
status = decode_verifier(xdr, res->verf->verifier);
return status;
}

static int decode_create(struct xdr_stream *xdr, struct nfs4_change_info *cinfo)
Expand Down Expand Up @@ -3852,17 +3854,17 @@ static int decode_readdir(struct xdr_stream *xdr, struct rpc_rqst *req, struct n
int status;

status = decode_op_hdr(xdr, OP_READDIR);
if (status)
if (!status)
status = decode_verifier(xdr, readdir->verifier.data);
if (unlikely(status))
return status;
READ_BUF(8);
COPYMEM(readdir->verifier.data, 8);
dprintk("%s: verifier = %08x:%08x\n",
__func__,
((u32 *)readdir->verifier.data)[0],
((u32 *)readdir->verifier.data)[1]);


hdrlen = (char *) p - (char *) iov->iov_base;
hdrlen = (char *) xdr->p - (char *) iov->iov_base;
recvd = rcvbuf->len - hdrlen;
if (pglen > recvd)
pglen = recvd;
Expand Down

0 comments on commit 3b17124

Please sign in to comment.