• Trond Myklebust's avatar
    NFSv3: Fix posix ACL code · ae46141f
    Trond Myklebust authored
    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>
    ae46141f
nfs3acl.c 10.1 KB