]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv3: Fix posix ACL code
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Mar 2009 00:33:18 +0000 (20:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Mar 2009 00:33:18 +0000 (20:33 -0400)
commit700306eebc7982d1ef8e80c8bd49c8858720f80c
tree12e9b19461fb00c7ba21d93272ddd470ca0e82b0
parentd223248843b433485bd443e026aede8ec903bea6
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: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs3acl.c
fs/nfs/nfs3xdr.c
include/linux/nfs_xdr.h
include/linux/nfsacl.h