[PATCH] mtd: nand: sunxi: fix sunxi_nand_chips_cleanup()

Brian Norris computersforpeace at gmail.com
Mon Sep 21 17:15:28 PDT 2015


On Sun, Sep 13, 2015 at 06:14:43PM +0200, Boris Brezillon wrote:
> The sunxi_nand_chips_cleanup() function is missing a call to list_del()
> which generates a double free error.

And if you could manage to get past that...an infinite loop, no?

> Reported-by: Priit Laes <plaes at plaes.org>
> Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
> Cc: <stable at vger.kernel.org> # 3.19+
> Fixes: 1fef62c1423b ("mtd: nand: add sunxi NAND flash controller support")

Applied to linux-mtd.git, as this is a -stable fix.

Brian



More information about the linux-arm-kernel mailing list