From patchwork Thu Feb 3 19:15:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesper Juhl X-Patchwork-Id: 530381 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 p13JGTqt029675 for ; Thu, 3 Feb 2011 19:16:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932430Ab1BCTQ1 (ORCPT ); Thu, 3 Feb 2011 14:16:27 -0500 Received: from swampdragon.chaosbits.net ([90.184.90.115]:10144 "EHLO swampdragon.chaosbits.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932221Ab1BCTQ0 (ORCPT ); Thu, 3 Feb 2011 14:16:26 -0500 Received: by swampdragon.chaosbits.net (Postfix, from userid 1000) id BF3F29403D; Thu, 3 Feb 2011 20:15:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by swampdragon.chaosbits.net (Postfix) with ESMTP id B65F79403B; Thu, 3 Feb 2011 20:15:28 +0100 (CET) Date: Thu, 3 Feb 2011 20:15:28 +0100 (CET) From: Jesper Juhl To: linux-nfs@vger.kernel.org cc: linux-kernel@vger.kernel.org, Trond Myklebust , Neil Brown , bfields@fieldses.org Subject: [PATCH] Fix size argument to memset call in nfsacl_encode Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 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]); Thu, 03 Feb 2011 19:16:30 +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