[linux-oxnas] Re: [PATCH] mtd: oxnas_nand: Allocating more than necessary in probe()

[ Thread Index | Date Index | More lists.tuxfamily.org/linux-oxnas Archives ]


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 <dan.carpenter@xxxxxxxxxx>

Applied to l2-mtd.git



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/