Commit 455a396710b71a743b28da2ed2185e5a9b38e26f

Authored by Trond Myklebust
1 parent c56c275022

[PATCH] NFSv4: Fix an Oops in the callback code.

The changeset "trond.myklebust@fys.uio.no|ChangeSet|20050322152404|16979"
 (RPC: Ensure XDR iovec length is initialized correctly in call_header)
 causes the NFSv4 callback code to BUG() due to an incorrectly initialized
 scratch buffer.

 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

fs/nfs/callback_xdr.c
... ... @@ -411,7 +411,6 @@
411 411 xdr_init_decode(&xdr_in, &rqstp->rq_arg, rqstp->rq_arg.head[0].iov_base);
412 412  
413 413 p = (uint32_t*)((char *)rqstp->rq_res.head[0].iov_base + rqstp->rq_res.head[0].iov_len);
414   - rqstp->rq_res.head[0].iov_len = PAGE_SIZE;
415 414 xdr_init_encode(&xdr_out, &rqstp->rq_res, p);
416 415  
417 416 decode_compound_hdr_arg(&xdr_in, &hdr_arg);