]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: rawnand: cafe: fix probe function error path
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 21 Mar 2018 13:01:43 +0000 (14:01 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 29 Mar 2018 07:38:18 +0000 (09:38 +0200)
commita446c998ff0cd49fa8023f607e9fc15ce45ec576
tree7b8d6677d605ba4c2aca81c2c7c8cb30fd67b2d9
parent5826b8802a970d2b0aaf097951de42040ee32480
mtd: rawnand: cafe: fix probe function error path

An error after nand_scan_tail() should trigger a nand_cleanup().
The helper mtd_device_parse_register() returns an error code that should
be checked and nand_cleanup() called accordingly.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/cafe_nand.c