From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d5jYx-00086K-7D for linux-mtd@lists.infradead.org; Wed, 03 May 2017 01:58:44 +0000 Received: by mail-pg0-x242.google.com with SMTP id s62so13958517pgc.0 for ; Tue, 02 May 2017 18:58:22 -0700 (PDT) Date: Tue, 2 May 2017 18:58:19 -0700 From: Brian Norris To: Dan Carpenter Cc: Boris Brezillon , Neil Armstrong , Richard Weinberger , David Woodhouse , Marek Vasut , Cyrille Pitchen , linux-mtd@lists.infradead.org, linux-oxnas@lists.tuxfamily.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] mtd: oxnas_nand: Allocating more than necessary in probe() Message-ID: <20170503015819.GA32111@google.com> References: <20170425091949.uindhaxmbtsksqc7@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170425091949.uindhaxmbtsksqc7@mwanda> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Apr 25, 2017 at 12:19:49PM +0300, Dan Carpenter wrote: > We only need to allocate sizeof(struct oxnas_nand_ctrl) which is 192 > bytes and not sizeof(struct nand_chip) which is a much larger 3056 > bytes. > > Fixes: 668592492409 ("mtd: nand: Add OX820 NAND Support") > Signed-off-by: Dan Carpenter Applied to l2-mtd.git