[PATCH] mtd: oxnas_nand: Allocating more than necessary in probe()

Brian Norris computersforpeace at gmail.com
Tue May 2 18:58:19 PDT 2017


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 at oracle.com>

Applied to l2-mtd.git



More information about the linux-mtd mailing list