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)
commit03b1d11a998b70df2ca699a9b9fb8ab5b0746d43
tree7022494a4ad28b70c930eef5fcc254657b00646e
parenta92c721dc638b3745266ffe85617fe54dfadff19
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
This page took 0.0242 seconds and 5 git commands to generate.