mtd: rawnand: fsmc: Stop using chip->read_buf()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 18 Jul 2018 08:28:14 +0000 (10:28 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 19 Jul 2018 21:14:14 +0000 (23:14 +0200)
commit79e1ca37cc0c056f224cc1dd4a301b9dc2f94167
tree752049ded32d5c5ae2964287fd44ce73679915f4
parent7330fc505af4af262ef874a4fc4492393106fdce
mtd: rawnand: fsmc: Stop using chip->read_buf()

chip->read_buf is left unassigned since commit 4da712e70294 ("mtd: nand:
fsmc: use ->exec_op()"), leading to a NULL pointer dereference when it's
called from fsmc_read_page_hwecc(). Fix that by using the appropriate
helper to read data out of the NAND.

Fixes: 4da712e70294 ("mtd: nand: fsmc: use ->exec_op()")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/fsmc_nand.c