From patchwork Sun Feb 20 22:33:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilia Mirkin X-Patchwork-Id: 576111 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1KMXrvI024626 for ; Sun, 20 Feb 2011 22:33:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754981Ab1BTWdu (ORCPT ); Sun, 20 Feb 2011 17:33:50 -0500 Received: from mail-qw0-f46.google.com ([209.85.216.46]:61053 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754719Ab1BTWdt (ORCPT ); Sun, 20 Feb 2011 17:33:49 -0500 Received: by qwd7 with SMTP id 7so1620777qwd.19 for ; Sun, 20 Feb 2011 14:33:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer; bh=FA2fy5JTWm+1zkLpRqrbaNcqDWKYhvaMqkb3b8SMBwk=; b=G5aRVqoUykV6zOmDN2rg3G2KTLVCnGXZc3/vO8UAXAjpXM8NsZMzExIzAgB/o8klBB EuOQaEcIOkhxrQtizEZ7AvHUzgK+LQd4NufMmVfZVGC/pEe8dWYrmBoD+VOPVoxtfOsA NfbndKnpFY4n0gaL3JLmu9pnLOdvVFiL4LIF0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=ghB8ku4va/L0dchT0t/Y3KcCAKomr0BdYkIKnamGTcoSBA/0FDGmXXwuxp80tcOPNH AHdeocV0HuzHqpS0eqV55LUrVg+YIB59UEgjt8KFMfUEbLvlE7bJwavsTsHb+rMa855X MAAAuHTGHHEos/KrJU7T/BUPInGPNIGTpb8gg= Received: by 10.229.249.17 with SMTP id mi17mr498704qcb.123.1298241228772; Sun, 20 Feb 2011 14:33:48 -0800 (PST) Received: from localhost.localdomain (user-12ld6t2.cable.mindspring.com [69.86.155.162]) by mx.google.com with ESMTPS id t7sm3331648qcs.16.2011.02.20.14.33.47 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Feb 2011 14:33:48 -0800 (PST) From: Ilia Mirkin To: Trond.Myklebust@netapp.com Cc: chuck.lever@oracle.com, linux-nfs@vger.kernel.org, Ilia Mirkin Subject: [PATCH] NFS: Zero entire acl2 structure Date: Sun, 20 Feb 2011 17:33:04 -0500 Message-Id: <1298241184-1250-1-git-send-email-imirkin@alum.mit.edu> X-Mailer: git-send-email 1.7.3.4 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 20 Feb 2011 22:33:53 +0000 (UTC) diff --git a/fs/nfs_common/nfsacl.c b/fs/nfs_common/nfsacl.c index 84c27d6..bc6d81b 100644 --- a/fs/nfs_common/nfsacl.c +++ b/fs/nfs_common/nfsacl.c @@ -117,7 +117,7 @@ int nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode, * invoked in contexts where a memory allocation failure is * fatal. Fortunately this fake ACL is small enough to * construct on the stack. */ - memset(acl2, 0, sizeof(acl2)); + memset(acl2, 0, sizeof(*acl2)); posix_acl_init(acl2, 4); /* Insert entries in canonical order: other orders seem