From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Norris Date: Wed, 03 May 2017 01:58:19 +0000 Subject: Re: [PATCH] mtd: oxnas_nand: Allocating more than necessary in probe() Message-Id: <20170503015819.GA32111@google.com> List-Id: References: <20170425091949.uindhaxmbtsksqc7@mwanda> In-Reply-To: <20170425091949.uindhaxmbtsksqc7@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 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