Skip to content
Commit ae46141f authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv3: Fix posix ACL code



Fix a memory leak due to allocation in the XDR layer. In cases where the
RPC call needs to be retransmitted, we end up allocating new pages without
clearing the old ones. Fix this by moving the allocation into
nfs3_proc_setacls().

Also fix an issue discovered by Kevin Rudd, whereby the amount of memory
reserved for the acls in the xdr_buf->head was miscalculated, and causing
corruption.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent ef95d31e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment