diff options
| author | J. Bruce Fields <bfields@redhat.com> | 2017-03-12 08:23:58 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-03-12 08:23:58 +0000 |
| commit | 27a9c6c0f307eb8734929b3c3de7a67bf9b88380 (patch) | |
| tree | 498c1f548f5358b37b44c33eaa38afbfec044e71 /fs | |
| parent | 58c1c0b371883ff645cf2e87b7dea599ede33f2b (diff) | |
| parent | 5d23e89065cd3c6a6fb5e5a90aa67b619a673490 (diff) | |
NFSv4: fix getacl head length estimation
am: 5d23e89065
Change-Id: I6fe895f8a7cbd023c380ec78803e0ed5a4abaa35
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/nfs/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 4e4441216804..1cb50bb898b0 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c @@ -2487,7 +2487,7 @@ static void nfs4_xdr_enc_getacl(struct rpc_rqst *req, struct xdr_stream *xdr, encode_compound_hdr(xdr, req, &hdr); encode_sequence(xdr, &args->seq_args, &hdr); encode_putfh(xdr, args->fh, &hdr); - replen = hdr.replen + op_decode_hdr_maxsz + 1; + replen = hdr.replen + op_decode_hdr_maxsz; encode_getattr_two(xdr, FATTR4_WORD0_ACL, 0, &hdr); xdr_inline_pages(&req->rq_rcv_buf, replen << 2, |
