]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: sunxi: fix subpage write
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 6 Jun 2016 11:59:14 +0000 (13:59 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 11 Jul 2016 06:40:13 +0000 (08:40 +0200)
commitdf2b911ee8c99a18d139f03c04d4e6ea390254b2
tree7022494a4ad28b70c930eef5fcc254657b00646e
parent8c8248f72c31b058a40ba2f4a8cfa0845ed94758
mtd: nand: sunxi: fix subpage write

Implement ecc->write_subpage() to prevent core code from assigning this
hook to nand_write_subpage_hwecc(). This default implementation tries
to call ecc->hwctl() which in our case is NULL, thus leading to a NULL
pointer dereference.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sunxi_nand.c